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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm

Issue 1053303003: [MacViews] Implement colored window frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm b/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
index 3356dcbb7fce26c814515eef47ba558206a9f737..3c0ebdd8e78ba03131600087edcdd80c06dff39a 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
@@ -20,7 +20,8 @@ void ChromeNativeAppWindowViewsMac::OnBeforeWidgetInit(
views::Widget::InitParams* init_params,
views::Widget* widget) {
DCHECK(!init_params->native_widget);
- init_params->native_widget = new AppWindowNativeWidgetMac(widget);
+ init_params->remove_standard_frame = IsFrameless();
+ init_params->native_widget = new AppWindowNativeWidgetMac(widget, this);
ChromeNativeAppWindowViews::OnBeforeWidgetInit(create_params, init_params,
widget);
}
@@ -30,6 +31,11 @@ ChromeNativeAppWindowViewsMac::CreateStandardDesktopAppFrame() {
return new NativeAppWindowFrameViewMac(widget());
}
+views::NonClientFrameView*
+ChromeNativeAppWindowViewsMac::CreateNonStandardAppFrame() {
+ return new NativeAppWindowFrameViewMac(widget());
+}
+
void ChromeNativeAppWindowViewsMac::Show() {
if (is_hidden_with_app_) {
// If there is a shim to gently request attention, return here. Otherwise

Powered by Google App Engine
This is Rietveld 408576698