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

Unified Diff: chrome/browser/ui/views/apps/app_window_native_widget_mac.h

Issue 987323002: [MacViews] Frameless app windows: make content view cover title bar. (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/app_window_native_widget_mac.h
diff --git a/chrome/browser/ui/views/apps/app_window_native_widget_mac.h b/chrome/browser/ui/views/apps/app_window_native_widget_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae7cfc2c4eb5d8833abddace515c30a976dac671
--- /dev/null
+++ b/chrome/browser/ui/views/apps/app_window_native_widget_mac.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
+#define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
+
+#include "ui/views/widget/native_widget_mac.h"
+
+// This implements features specific to app windows, e.g. frameless windows that
+// behave like normal windows.
+class AppWindowNativeWidgetMac : public views::NativeWidgetMac {
+ public:
+ explicit AppWindowNativeWidgetMac(views::Widget* widget);
+ ~AppWindowNativeWidgetMac() override;
+
+ protected:
+ // NativeWidgetMac:
+ gfx::NativeWindow CreateNSWindow(
+ const views::Widget::InitParams& params) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppWindowNativeWidgetMac);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H

Powered by Google App Engine
This is Rietveld 408576698