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

Unified Diff: trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h

Issue 14320040: Revert 194356 "views: Finally get rid of the deprecated Menu2 API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h
===================================================================
--- trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h (revision 195258)
+++ trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h (working copy)
@@ -5,21 +5,18 @@
#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
#define CHROME_BROWSER_UI_VIEWS_FRAME_SYSTEM_MENU_INSERTION_DELEGATE_WIN_H_
-#include <windows.h>
+#include "ui/views/controls/menu/native_menu_win.h"
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/views/controls/menu/menu_insertion_delegate.h"
-
// SystemMenuInsertionDelegateWin is used to determine the index to insert menu
// items into the system item. It is only needed on windows as that is the only
// place we insert items into the system menu.
-class SystemMenuInsertionDelegateWin : public views::MenuInsertionDelegate {
+class SystemMenuInsertionDelegateWin
+ : public views::MenuWrapper::InsertionDelegate {
public:
SystemMenuInsertionDelegateWin() {}
virtual ~SystemMenuInsertionDelegateWin() {}
- // Overridden from views::MenuInsertionDelegate:
+ // InsertionDelegate overrides:
virtual int GetInsertionIndex(HMENU native_menu) OVERRIDE;
private:
« no previous file with comments | « no previous file | trunk/src/chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698