| OLD | NEW |
| 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_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" | 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" |
| 9 | 9 |
| 10 // Mac-specific parts of ChromeNativeAppWindowViews. | 10 // Mac-specific parts of ChromeNativeAppWindowViews. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 views::Widget* widget) override; | 21 views::Widget* widget) override; |
| 22 views::NonClientFrameView* CreateStandardDesktopAppFrame() override; | 22 views::NonClientFrameView* CreateStandardDesktopAppFrame() override; |
| 23 views::NonClientFrameView* CreateNonStandardAppFrame() override; | 23 views::NonClientFrameView* CreateNonStandardAppFrame() override; |
| 24 | 24 |
| 25 // ui::BaseWindow implementation. | 25 // ui::BaseWindow implementation. |
| 26 void Show() override; | 26 void Show() override; |
| 27 void ShowInactive() override; | 27 void ShowInactive() override; |
| 28 void FlashFrame(bool flash) override; | 28 void FlashFrame(bool flash) override; |
| 29 | 29 |
| 30 // NativeAppWindow implementation. | 30 // NativeAppWindow implementation. |
| 31 void UpdateDraggableRegions( |
| 32 const std::vector<extensions::DraggableRegion>& regions) override; |
| 31 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 33 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 32 // and shown using the app.window API, this sets is_hidden_with_app_ to | 34 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| 33 // differentiate the reason a window was hidden. | 35 // differentiate the reason a window was hidden. |
| 34 void ShowWithApp() override; | 36 void ShowWithApp() override; |
| 35 void HideWithApp() override; | 37 void HideWithApp() override; |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 // Whether this window last became hidden due to a request to hide the entire | 40 // Whether this window last became hidden due to a request to hide the entire |
| 39 // app, e.g. via the dock menu or Cmd+H. This is set by Hide/ShowWithApp. | 41 // app, e.g. via the dock menu or Cmd+H. This is set by Hide/ShowWithApp. |
| 40 bool is_hidden_with_app_; | 42 bool is_hidden_with_app_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsMac); | 44 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsMac); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ | 47 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ |
| OLD | NEW |