root/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. GetInsertionIndex

// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h"

#include <Windowsx.h>

#include <algorithm>

int SystemMenuInsertionDelegateWin::GetInsertionIndex(HMENU native_menu) {
  return std::max(0, GetMenuItemCount(native_menu) - 1);
}

/* [<][>][^][v][top][bottom][index][help] */