Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h

Issue 14150005: views: Finally get rid of the deprecated Menu2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm comment Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_ 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_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
7 7
8 #include "ui/views/controls/menu/native_menu_win.h" 8 #include <windows.h>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "ui/views/controls/menu/menu_insertion_delegate.h"
9 13
10 // SystemMenuInsertionDelegateWin is used to determine the index to insert menu 14 // SystemMenuInsertionDelegateWin is used to determine the index to insert menu
11 // items into the system item. It is only needed on windows as that is the only 15 // items into the system item. It is only needed on windows as that is the only
12 // place we insert items into the system menu. 16 // place we insert items into the system menu.
13 class SystemMenuInsertionDelegateWin 17 class SystemMenuInsertionDelegateWin : public views::MenuInsertionDelegate {
14 : public views::MenuWrapper::InsertionDelegate {
15 public: 18 public:
16 SystemMenuInsertionDelegateWin() {} 19 SystemMenuInsertionDelegateWin() {}
17 virtual ~SystemMenuInsertionDelegateWin() {} 20 virtual ~SystemMenuInsertionDelegateWin() {}
18 21
19 // InsertionDelegate overrides: 22 // Overridden from views::MenuInsertionDelegate:
20 virtual int GetInsertionIndex(HMENU native_menu) OVERRIDE; 23 virtual int GetInsertionIndex(HMENU native_menu) OVERRIDE;
21 24
22 private: 25 private:
23 DISALLOW_COPY_AND_ASSIGN(SystemMenuInsertionDelegateWin); 26 DISALLOW_COPY_AND_ASSIGN(SystemMenuInsertionDelegateWin);
24 }; 27 };
25 28
26 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_ 29 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698