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

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

Issue 796433003: MacViews: Don't draw custom frame on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keybinding3
Patch Set: Created 5 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/native_browser_frame.h
diff --git a/chrome/browser/ui/views/frame/native_browser_frame.h b/chrome/browser/ui/views/frame/native_browser_frame.h
index 92885ab3bc0e76e5ccbd2c172ace88faed734460..2518ccb21a7fb1e4a52222ce4e1090982920b873 100644
--- a/chrome/browser/ui/views/frame/native_browser_frame.h
+++ b/chrome/browser/ui/views/frame/native_browser_frame.h
@@ -23,6 +23,9 @@ class NativeBrowserFrame {
// Returns the platform specific InitParams for initializing our widget.
virtual views::Widget::InitParams GetWidgetParams() = 0;
+ // Returns |true| if we should use the custom frame.
+ virtual bool UseCustomFrame() const = 0;
+
// Returns true if the OS takes care of showing the system menu. Returning
// false means BrowserFrame handles showing the system menu.
virtual bool UsesNativeSystemMenu() const = 0;

Powered by Google App Engine
This is Rietveld 408576698