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

Side by Side Diff: chrome/browser/ui/views/apps/app_window_native_widget_mac.h

Issue 1023083002: [MacViews] Implement size constraints for app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
7 7
8 #include "ui/views/widget/native_widget_mac.h" 8 #include "ui/views/widget/native_widget_mac.h"
9 9
10 // This implements features specific to app windows, e.g. frameless windows that 10 // This implements features specific to app windows, e.g. frameless windows that
11 // behave like normal windows. 11 // behave like normal windows.
12 class AppWindowNativeWidgetMac : public views::NativeWidgetMac { 12 class AppWindowNativeWidgetMac : public views::NativeWidgetMac {
13 public: 13 public:
14 explicit AppWindowNativeWidgetMac(views::Widget* widget); 14 explicit AppWindowNativeWidgetMac(views::Widget* widget);
15 ~AppWindowNativeWidgetMac() override; 15 ~AppWindowNativeWidgetMac() override;
16 16
17 // internal::NativeWidgetPrivate:
18 void OnSizeConstraintsChanged() override;
19
17 protected: 20 protected:
18 // NativeWidgetMac: 21 // NativeWidgetMac:
19 gfx::NativeWindow CreateNSWindow( 22 gfx::NativeWindow CreateNSWindow(
20 const views::Widget::InitParams& params) override; 23 const views::Widget::InitParams& params) override;
21 24
22 private: 25 private:
23 DISALLOW_COPY_AND_ASSIGN(AppWindowNativeWidgetMac); 26 DISALLOW_COPY_AND_ASSIGN(AppWindowNativeWidgetMac);
24 }; 27 };
25 28
26 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H 29 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_WINDOW_NATIVE_WIDGET_MAC_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698