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

Unified Diff: ui/views/controls/webview/webview.h

Issue 10171006: Convert more users away from DOMView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/webview.h
===================================================================
--- ui/views/controls/webview/webview.h (revision 133597)
+++ ui/views/controls/webview/webview.h (working copy)
@@ -64,6 +64,12 @@
// forward this notification.
void OnWebContentsFocused(content::WebContents* web_contents);
+ // When used to host UI, we need to explicitly allow accelerators to be
+ // processed. Default is false.
+ void set_allow_accelerators(bool allow_accelerators) {
+ allow_accelerators_ = allow_accelerators;
+ }
+
// Overridden from View:
virtual std::string GetClassName() const OVERRIDE;
@@ -101,6 +107,7 @@
content::WebContents* web_contents_;
content::BrowserContext* browser_context_;
content::NotificationRegistrar registrar_;
+ bool allow_accelerators_;
DISALLOW_COPY_AND_ASSIGN(WebView);
};
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698