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

Unified Diff: ui/views/view.cc

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review Created 4 years, 9 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
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index e2139e8d75f3051059aea335db95b6bc0dc34650..fb0332be5936209ece3aa587cd2d322d561a0b68 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1168,6 +1168,12 @@ bool View::CanHandleAccelerators() const {
return true;
}
+bool View::HandlesAccelerator(const ui::Accelerator& accelerator) {
+ return CanHandleAccelerators() && accelerators_ &&
+ std::find(accelerators_->begin(), accelerators_->end(), accelerator) !=
+ accelerators_->end();
+}
+
// Focus -----------------------------------------------------------------------
bool View::HasFocus() const {

Powered by Google App Engine
This is Rietveld 408576698