Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / system_menu_insertion_delegate_win.h
blob4cedc5f4d92fa741a9a80350224e67cad5ad0f9a
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/menu/menu_insertion_delegate_win.h"
12 // SystemMenuInsertionDelegateWin is used to determine the index to insert menu
13 // items into the system item. It is only needed on windows as that is the only
14 // place we insert items into the system menu.
15 class SystemMenuInsertionDelegateWin : public views::MenuInsertionDelegateWin {
16 public:
17 SystemMenuInsertionDelegateWin() {}
18 virtual ~SystemMenuInsertionDelegateWin() {}
20 // Overridden from views::MenuInsertionDelegateWin:
21 virtual int GetInsertionIndex(HMENU native_menu) OVERRIDE;
23 private:
24 DISALLOW_COPY_AND_ASSIGN(SystemMenuInsertionDelegateWin);
27 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_