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

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: fix compile errs Created 4 years, 10 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..d3a46d34853f7945bc3c96a83412547b62155e48 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1363,6 +1363,14 @@ int View::GetLineScrollIncrement(ScrollView* scroll_view,
return 0;
}
+// Accelerators ----------------------------------------------------------------
+
+bool View::HandlesAccelerator(const ui::Accelerator& accelerator) {
+ return accelerators_ &&
msw 2016/03/03 23:01:40 nit: should this check CanHandleAccelerators() too
Evan Stade 2016/03/07 18:36:38 hm, maybe. Done.
+ std::find(accelerators_->begin(), accelerators_->end(), accelerator) !=
+ accelerators_->end();
+}
+
////////////////////////////////////////////////////////////////////////////////
// View, protected:

Powered by Google App Engine
This is Rietveld 408576698