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

Unified Diff: chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h

Issue 11819008: Refactors building the system menu model into a common place (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk and fix windows build Created 7 years, 11 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
Index: chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
diff --git a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h b/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
index f1545b4152fce656fcd220971ef3ce757c815b71..abf84cd28aea00eda0742fe644a94454e46aea29 100644
--- a/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
+++ b/chrome/browser/ui/views/frame/browser_desktop_root_window_host_win.h
@@ -14,6 +14,7 @@ class BrowserView;
namespace views {
class DesktopNativeWidgetAura;
+class NativeMenuWin;
}
class BrowserDesktopRootWindowHostWin : public BrowserDesktopRootWindowHost,
@@ -28,9 +29,12 @@ class BrowserDesktopRootWindowHostWin : public BrowserDesktopRootWindowHost,
virtual ~BrowserDesktopRootWindowHostWin();
private:
+ views::NativeMenuWin* GetSystemMenu();
+
// Overridden from BrowserDesktopRootWindowHost:
virtual DesktopRootWindowHost* AsDesktopRootWindowHost() OVERRIDE;
virtual int GetMinimizeButtonOffset() const OVERRIDE;
+ virtual bool UsesNativeSystemMenu() const OVERRIDE;
// Overridden from DesktopRootWindowHostWin:
virtual int GetInitialShowState() const OVERRIDE;
@@ -52,6 +56,9 @@ class BrowserDesktopRootWindowHostWin : public BrowserDesktopRootWindowHost,
MinimizeButtonMetrics minimize_button_metrics_;
+ // The wrapped system menu itself.
+ scoped_ptr<views::NativeMenuWin> system_menu_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserDesktopRootWindowHostWin);
};

Powered by Google App Engine
This is Rietveld 408576698