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 #import "chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h" | 5 #import "chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h" |
6 | 6 |
7 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" | 7 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" |
8 #include "chrome/browser/ui/views/apps/app_window_native_widget_mac.h" | 8 #include "chrome/browser/ui/views/apps/app_window_native_widget_mac.h" |
9 #include "chrome/browser/ui/views/apps/native_app_window_frame_view_mac.h" | 9 #include "chrome/browser/ui/views/apps/native_app_window_frame_view_mac.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ChromeNativeAppWindowViews::Show(); | 43 ChromeNativeAppWindowViews::Show(); |
44 } | 44 } |
45 | 45 |
46 void ChromeNativeAppWindowViewsMac::ShowInactive() { | 46 void ChromeNativeAppWindowViewsMac::ShowInactive() { |
47 if (is_hidden_with_app_) | 47 if (is_hidden_with_app_) |
48 return; | 48 return; |
49 | 49 |
50 ChromeNativeAppWindowViews::ShowInactive(); | 50 ChromeNativeAppWindowViews::ShowInactive(); |
51 } | 51 } |
52 | 52 |
| 53 void ChromeNativeAppWindowViewsMac::FlashFrame(bool flash) { |
| 54 apps::ExtensionAppShimHandler::RequestUserAttentionForWindow( |
| 55 app_window(), flash ? apps::APP_SHIM_ATTENTION_CRITICAL |
| 56 : apps::APP_SHIM_ATTENTION_CANCEL); |
| 57 } |
| 58 |
53 void ChromeNativeAppWindowViewsMac::ShowWithApp() { | 59 void ChromeNativeAppWindowViewsMac::ShowWithApp() { |
54 is_hidden_with_app_ = false; | 60 is_hidden_with_app_ = false; |
55 if (!app_window()->is_hidden()) | 61 if (!app_window()->is_hidden()) |
56 ShowInactive(); | 62 ShowInactive(); |
57 } | 63 } |
58 | 64 |
59 void ChromeNativeAppWindowViewsMac::HideWithApp() { | 65 void ChromeNativeAppWindowViewsMac::HideWithApp() { |
60 is_hidden_with_app_ = true; | 66 is_hidden_with_app_ = true; |
61 ChromeNativeAppWindowViews::Hide(); | 67 ChromeNativeAppWindowViews::Hide(); |
62 } | 68 } |
OLD | NEW |