OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" |
| 9 |
| 10 // Mac-specific parts of ChromeNativeAppWindowViews. |
| 11 class ChromeNativeAppWindowViewsMac : public ChromeNativeAppWindowViews { |
| 12 public: |
| 13 ChromeNativeAppWindowViewsMac(); |
| 14 ~ChromeNativeAppWindowViewsMac() override; |
| 15 |
| 16 protected: |
| 17 // ui::BaseWindow implementation. |
| 18 void Show() override; |
| 19 void ShowInactive() override; |
| 20 |
| 21 // NativeAppWindow implementation. |
| 22 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 23 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| 24 // differentiate the reason a window was hidden. |
| 25 void ShowWithApp() override; |
| 26 void HideWithApp() override; |
| 27 |
| 28 private: |
| 29 // Whether this window last became hidden due to a request to hide the entire |
| 30 // app, e.g. via the dock menu or Cmd+H. This is set by Hide/ShowWithApp. |
| 31 bool is_hidden_with_app_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsMac); |
| 34 }; |
| 35 |
| 36 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_MAC_H_ |
OLD | NEW |