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

Unified Diff: views/view.cc

Issue 8052019: Create constrained windows in a hidden state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and address comments Created 9 years, 2 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/chrome_tests.gypi ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index d9b744a81dba2abd40c6e46308c88b02936596f5..396839c649bb024fcd1813de8a5eb90f22c6f0d3 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1948,7 +1948,7 @@ void View::RegisterPendingAccelerators() {
return;
}
// Only register accelerators if we are visible.
- if (!IsVisibleInRootView())
+ if (!IsVisibleInRootView() || !GetWidget()->IsVisible())
return;
for (std::vector<Accelerator>::const_iterator i(
accelerators_->begin() + registered_accelerator_count_);
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698