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

Side by Side Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm

Issue 1105663004: [MacViews] Implement ChromeNativeAppWindowViewsMac::FlashFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698