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

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

Issue 1023083002: [MacViews] Implement size constraints for app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 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 a90b38d8053dd1e73bc2eae990da99f4c7ad4262..15318115fbe92a42a39d981f5d8f31fb986b462a 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
@@ -6,6 +6,7 @@
#include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h"
#include "chrome/browser/ui/views/apps/app_window_native_widget_mac.h"
+#include "chrome/browser/ui/views/apps/native_frame_view_mac.h"
ChromeNativeAppWindowViewsMac::ChromeNativeAppWindowViewsMac()
: is_hidden_with_app_(false) {
@@ -24,6 +25,11 @@ void ChromeNativeAppWindowViewsMac::OnBeforeWidgetInit(
widget);
}
+views::NonClientFrameView*
+ChromeNativeAppWindowViewsMac::CreateStandardDesktopAppFrame() {
+ return new NativeFrameViewMac(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