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

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: Address comments. Created 5 years, 7 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 1d2f0fdb5e8dd02c479f30bfddd408345cdbe2b0..3118db8f5b27562e1a0f3f6e48196bb5c9596b35 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