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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 118283003: Make Widget::Show() creates active windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more ShowInactive() calls Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index 6e4a1d0d9512dd41aec053d5c79e38b88db796dc..f9a7d56529ba3025bac769941c74c15b5ccb4d82 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -211,7 +211,7 @@ void StatusBubbleViews::StatusView::Show() {
Stop();
CancelTimer();
SetOpacity(1.0);
- popup_->Show();
+ popup_->ShowInactive();
state_ = BUBBLE_SHOWN;
}
@@ -295,7 +295,7 @@ void StatusBubbleViews::StatusView::StartHiding() {
void StatusBubbleViews::StatusView::StartShowing() {
if (state_ == BUBBLE_HIDDEN) {
- popup_->Show();
+ popup_->ShowInactive();
state_ = BUBBLE_SHOWING_TIMER;
StartTimer(base::TimeDelta::FromMilliseconds(kShowDelay));
} else if (state_ == BUBBLE_HIDING_TIMER) {
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | ui/views/controls/menu/menu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698