summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-18 15:16:54 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-18 15:16:54 +0000
commitb87ee5256f760e63d5373258b4b51cc1f7258b5d (patch)
treec1401ca9694b72fd5f4df66b3e50b178adf64ef7 /chrome
parent5dbb5e732ebb3e66ab04b961a62329fd6f9a4b15 (diff)
downloadchromium_src-b87ee5256f760e63d5373258b4b51cc1f7258b5d.zip
chromium_src-b87ee5256f760e63d5373258b4b51cc1f7258b5d.tar.gz
chromium_src-b87ee5256f760e63d5373258b4b51cc1f7258b5d.tar.bz2
Move NativeWebKeyboardEvent to the content namespace.
TBR=ben Review URL: https://chromiumcodereview.appspot.com/10383239 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137865 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc1
-rw-r--r--chrome/browser/automation/testing_automation_provider.h6
-rw-r--r--chrome/browser/chromeos/login/html_page_screen.cc1
-rw-r--r--chrome/browser/chromeos/login/html_page_screen.h2
-rw-r--r--chrome/browser/chromeos/login/registration_screen.cc1
-rw-r--r--chrome/browser/chromeos/login/registration_screen.h2
-rw-r--r--chrome/browser/chromeos/login/webui_login_view.cc2
-rw-r--r--chrome/browser/chromeos/login/webui_login_view.h2
-rw-r--r--chrome/browser/debugger/devtools_window.cc1
-rw-r--r--chrome/browser/debugger/devtools_window.h7
-rw-r--r--chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc1
-rw-r--r--chrome/browser/extensions/extension_host.cc1
-rw-r--r--chrome/browser/extensions/extension_host.h20
-rw-r--r--chrome/browser/extensions/extension_host_mac.h3
-rw-r--r--chrome/browser/extensions/extension_host_mac.mm2
-rw-r--r--chrome/browser/external_tab/external_tab_container_win.cc1
-rw-r--r--chrome/browser/external_tab/external_tab_container_win.h7
-rw-r--r--chrome/browser/printing/print_preview_tab_controller.cc1
-rw-r--r--chrome/browser/ui/browser.cc1
-rw-r--r--chrome/browser/ui/browser.h9
-rw-r--r--chrome/browser/ui/browser_window.h10
-rw-r--r--chrome/browser/ui/cocoa/browser_window_cocoa.h7
-rw-r--r--chrome/browser/ui/cocoa/browser_window_cocoa.mm1
-rw-r--r--chrome/browser/ui/cocoa/browser_window_utils.h7
-rw-r--r--chrome/browser/ui/cocoa/browser_window_utils.mm2
-rw-r--r--chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm2
-rw-r--r--chrome/browser/ui/cocoa/web_dialog_window_controller.mm1
-rw-r--r--chrome/browser/ui/gtk/browser_window_gtk.cc1
-rw-r--r--chrome/browser/ui/gtk/browser_window_gtk.h7
-rw-r--r--chrome/browser/ui/gtk/find_bar_gtk.cc2
-rw-r--r--chrome/browser/ui/gtk/web_dialog_gtk.cc1
-rw-r--r--chrome/browser/ui/gtk/web_dialog_gtk.h2
-rw-r--r--chrome/browser/ui/panels/native_panel.h5
-rw-r--r--chrome/browser/ui/panels/panel.cc1
-rw-r--r--chrome/browser/ui/panels/panel.h4
-rw-r--r--chrome/browser/ui/panels/panel_browser_view.cc1
-rw-r--r--chrome/browser/ui/panels/panel_browser_view.h4
-rw-r--r--chrome/browser/ui/panels/panel_browser_window_cocoa.h4
-rw-r--r--chrome/browser/ui/panels/panel_browser_window_cocoa.mm1
-rw-r--r--chrome/browser/ui/panels/panel_browser_window_gtk.cc1
-rw-r--r--chrome/browser/ui/panels/panel_browser_window_gtk.h4
-rw-r--r--chrome/browser/ui/views/dropdown_bar_host.h2
-rw-r--r--chrome/browser/ui/views/dropdown_bar_host_aura.cc1
-rw-r--r--chrome/browser/ui/views/dropdown_bar_host_win.cc1
-rw-r--r--chrome/browser/ui/views/find_bar_host.cc2
-rw-r--r--chrome/browser/ui/views/frame/browser_view.cc1
-rw-r--r--chrome/browser/ui/views/frame/browser_view.h13
-rw-r--r--chrome/browser/ui/views/unhandled_keyboard_event_handler.h2
-rw-r--r--chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc2
-rw-r--r--chrome/browser/ui/views/unhandled_keyboard_event_handler_win.cc2
-rw-r--r--chrome/browser/ui/views/web_dialog_view.cc1
-rw-r--r--chrome/browser/ui/views/web_dialog_view.h4
-rw-r--r--chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc1
-rw-r--r--chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h2
-rw-r--r--chrome/test/base/test_browser_window.cc2
-rw-r--r--chrome/test/base/test_browser_window.h7
-rw-r--r--chrome/test/base/ui_test_utils.cc1
57 files changed, 119 insertions, 64 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 9b57104..d1d0a40 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -177,6 +177,7 @@ using content::ChildProcessHost;
using content::DownloadItem;
using content::DownloadManager;
using content::InterstitialPage;
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NavigationEntry;
using content::PluginService;
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index db2d3c3..ea66114 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -35,7 +35,6 @@ class PowerManagerClientObserverForTesting;
class AutofillProfile;
class CreditCard;
class ImporterList;
-struct NativeWebKeyboardEvent;
namespace base {
class DictionaryValue;
@@ -43,6 +42,7 @@ class DictionaryValue;
namespace content {
class RenderViewHost;
+struct NativeWebKeyboardEvent;
}
namespace gfx {
@@ -755,13 +755,13 @@ class TestingAutomationProvider : public AutomationProvider,
// the error parameter, otherwise returns true.
bool BuildWebKeyEventFromArgs(base::DictionaryValue* args,
std::string* error,
- NativeWebKeyboardEvent* event);
+ content::NativeWebKeyboardEvent* event);
// Populates the fields of the event parameter with default data, except for
// the specified key type and key code.
void BuildSimpleWebKeyEvent(WebKit::WebInputEvent::Type type,
int windows_key_code,
- NativeWebKeyboardEvent* event);
+ content::NativeWebKeyboardEvent* event);
// Sends a key press event using the given key code to the specified tab.
// A key press is a combination of a "key down" event and a "key up" event.
diff --git a/chrome/browser/chromeos/login/html_page_screen.cc b/chrome/browser/chromeos/login/html_page_screen.cc
index d222709..cdcb907 100644
--- a/chrome/browser/chromeos/login/html_page_screen.cc
+++ b/chrome/browser/chromeos/login/html_page_screen.cc
@@ -13,6 +13,7 @@
#include "googleurl/src/gurl.h"
#include "ui/views/events/event.h"
+using content::NativeWebKeyboardEvent;
using content::SiteInstance;
using content::WebContents;
diff --git a/chrome/browser/chromeos/login/html_page_screen.h b/chrome/browser/chromeos/login/html_page_screen.h
index 4a6b4a9..f92aaab 100644
--- a/chrome/browser/chromeos/login/html_page_screen.h
+++ b/chrome/browser/chromeos/login/html_page_screen.h
@@ -52,7 +52,7 @@ class HTMLPageScreen : public ViewScreen<HTMLPageView>,
virtual HTMLPageView* AllocateView() OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
// WebPageScreen implementation:
virtual void CloseScreen(ScreenObserver::ExitCodes code) OVERRIDE;
diff --git a/chrome/browser/chromeos/login/registration_screen.cc b/chrome/browser/chromeos/login/registration_screen.cc
index 3273f16..6878cb4 100644
--- a/chrome/browser/chromeos/login/registration_screen.cc
+++ b/chrome/browser/chromeos/login/registration_screen.cc
@@ -20,6 +20,7 @@
#include "net/url_request/url_request_filter.h"
using content::ChildProcessSecurityPolicy;
+using content::NativeWebKeyboardEvent;
using content::OpenURLParams;
using content::SiteInstance;
using content::WebContents;
diff --git a/chrome/browser/chromeos/login/registration_screen.h b/chrome/browser/chromeos/login/registration_screen.h
index d72de1e..921d0ff 100644
--- a/chrome/browser/chromeos/login/registration_screen.h
+++ b/chrome/browser/chromeos/login/registration_screen.h
@@ -69,7 +69,7 @@ class RegistrationScreen : public ViewScreen<RegistrationView>,
const content::OpenURLParams& params) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
// WebPageScreen implementation:
virtual void CloseScreen(ScreenObserver::ExitCodes code) OVERRIDE;
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index 68eb562..49561ee 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -37,7 +37,7 @@
#include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h"
#endif
-
+using content::NativeWebKeyboardEvent;
using content::RenderViewHost;
using content::WebContents;
diff --git a/chrome/browser/chromeos/login/webui_login_view.h b/chrome/browser/chromeos/login/webui_login_view.h
index 537299e..a1585df 100644
--- a/chrome/browser/chromeos/login/webui_login_view.h
+++ b/chrome/browser/chromeos/login/webui_login_view.h
@@ -106,7 +106,7 @@ class WebUILoginView : public views::WidgetDelegateView,
virtual bool HandleContextMenu(
const content::ContextMenuParams& params) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual bool IsPopupOrPanel(
const content::WebContents* source) const OVERRIDE;
virtual bool TakeFocus(bool reverse) OVERRIDE;
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index 7a42904..f8b8b70 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -56,6 +56,7 @@ using content::DevToolsAgentHost;
using content::DevToolsAgentHostRegistry;
using content::DevToolsClientHost;
using content::DevToolsManager;
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;
diff --git a/chrome/browser/debugger/devtools_window.h b/chrome/browser/debugger/devtools_window.h
index b7ae297..6c40ba9 100644
--- a/chrome/browser/debugger/devtools_window.h
+++ b/chrome/browser/debugger/devtools_window.h
@@ -116,10 +116,11 @@ class DevToolsWindow : private content::NotificationObserver,
bool user_gesture) OVERRIDE;
virtual void CloseContents(content::WebContents* source) OVERRIDE {}
virtual bool CanReloadContents(content::WebContents* source) const OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual content::JavaScriptDialogCreator*
GetJavaScriptDialogCreator() OVERRIDE;
diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
index 654b61f..c911916 100644
--- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
+++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
@@ -41,6 +41,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NotificationDetails;
using content::NotificationSource;
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index 722f279..e5088af 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -57,6 +57,7 @@
using WebKit::WebDragOperation;
using WebKit::WebDragOperationsMask;
+using content::NativeWebKeyboardEvent;
using content::OpenURLParams;
using content::RenderViewHost;
using content::SiteInstance;
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 96aa74d..a9aa8e2 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -142,14 +142,15 @@ class ExtensionHost : public content::WebContentsDelegate,
virtual content::WebContents* OpenURLFromTab(
content::WebContents* source,
const content::OpenURLParams& params) OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
- virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event)
- OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
+ virtual void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ResizeDueToAutoResize(content::WebContents* source,
const gfx::Size& new_size) OVERRIDE;
- virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator()
- OVERRIDE;
+ virtual content::JavaScriptDialogCreator*
+ GetJavaScriptDialogCreator() OVERRIDE;
virtual void RunFileChooser(
content::WebContents* tab,
const content::FileChooserParams& params) OVERRIDE;
@@ -178,8 +179,8 @@ class ExtensionHost : public content::WebContentsDelegate,
void Close();
// ExtensionFunctionDispatcher::Delegate
- virtual ExtensionWindowController* GetExtensionWindowController()
- const OVERRIDE;
+ virtual ExtensionWindowController*
+ GetExtensionWindowController() const OVERRIDE;
// Message handlers.
void OnRequest(const ExtensionHostMsg_Request_Params& params);
@@ -190,7 +191,8 @@ class ExtensionHost : public content::WebContentsDelegate,
// Handles keyboard events that were not handled by HandleKeyboardEvent().
// Platform specific implementation may override this method to handle the
// event in platform specific way.
- virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
+ virtual void UnhandledKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) {}
// Returns true if we're hosting a background page.
// This isn't valid until CreateRenderView is called.
diff --git a/chrome/browser/extensions/extension_host_mac.h b/chrome/browser/extensions/extension_host_mac.h
index 5b0e5e0..1ee25a6 100644
--- a/chrome/browser/extensions/extension_host_mac.h
+++ b/chrome/browser/extensions/extension_host_mac.h
@@ -17,9 +17,10 @@ class ExtensionHostMac : public ExtensionHost {
const GURL& url, content::ViewType host_type) :
ExtensionHost(extension, site_instance, url, host_type) {}
virtual ~ExtensionHostMac();
+
private:
virtual void UnhandledKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ExtensionHostMac);
};
diff --git a/chrome/browser/extensions/extension_host_mac.mm b/chrome/browser/extensions/extension_host_mac.mm
index 6893340..11350db 100644
--- a/chrome/browser/extensions/extension_host_mac.mm
+++ b/chrome/browser/extensions/extension_host_mac.mm
@@ -10,6 +10,8 @@
#include "chrome/common/chrome_view_type.h"
#include "content/public/browser/native_web_keyboard_event.h"
+using content::NativeWebKeyboardEvent;
+
ExtensionHostMac::~ExtensionHostMac() {
// If there is a popup open for this host's extension, close it.
ExtensionPopupController* popup = [ExtensionPopupController popup];
diff --git a/chrome/browser/external_tab/external_tab_container_win.cc b/chrome/browser/external_tab/external_tab_container_win.cc
index ff4bb90..fc38057 100644
--- a/chrome/browser/external_tab/external_tab_container_win.cc
+++ b/chrome/browser/external_tab/external_tab_container_win.cc
@@ -68,6 +68,7 @@
using content::BrowserThread;
using content::LoadNotificationDetails;
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;
diff --git a/chrome/browser/external_tab/external_tab_container_win.h b/chrome/browser/external_tab/external_tab_container_win.h
index 8dc9b51..2cb8f82 100644
--- a/chrome/browser/external_tab/external_tab_container_win.h
+++ b/chrome/browser/external_tab/external_tab_container_win.h
@@ -146,10 +146,11 @@ class ExternalTabContainer : public content::WebContentsDelegate,
int64 source_frame_id,
const GURL& target_url,
content::WebContents* new_contents) OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual bool TakeFocus(bool reverse) OVERRIDE;
virtual bool CanDownload(content::RenderViewHost* render_view_host,
int request_id,
diff --git a/chrome/browser/printing/print_preview_tab_controller.cc b/chrome/browser/printing/print_preview_tab_controller.cc
index 30d0c1e..470a8fe 100644
--- a/chrome/browser/printing/print_preview_tab_controller.cc
+++ b/chrome/browser/printing/print_preview_tab_controller.cc
@@ -40,6 +40,7 @@
#include "content/public/browser/web_contents.h"
#include "webkit/plugins/webplugininfo.h"
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::WebContents;
using content::WebUIMessageHandler;
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index e348072..44b5314 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -215,6 +215,7 @@
#endif
using base::TimeDelta;
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 16b97ed..5dc3dce 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -728,7 +728,7 @@ class Browser : public TabStripModelDelegate,
// should not be sent to the renderer or |event| was triggered by a key that
// we never want to send to the renderer.
bool IsReservedCommandOrKey(int command_id,
- const NativeWebKeyboardEvent& event);
+ const content::NativeWebKeyboardEvent& event);
// Sets if command execution shall be blocked. If |block| is true then
// following calls to ExecuteCommand() or ExecuteCommandWithDisposition()
@@ -963,10 +963,11 @@ class Browser : public TabStripModelDelegate,
content::WebContents* source,
const GURL& frame_url,
const std::string& frame_content_state) OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ShowRepostFormWarningDialog(
content::WebContents* source) OVERRIDE;
virtual bool ShouldAddNavigationToHistory(
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 84ab861..1e202b2 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -27,10 +27,10 @@ class TemplateURL;
#if !defined(OS_MACOSX)
class ToolbarView;
#endif
-struct NativeWebKeyboardEvent;
namespace content {
class WebContents;
+struct NativeWebKeyboardEvent;
struct SSLStatus;
}
@@ -277,12 +277,14 @@ class BrowserWindow : public BaseWindow {
// Returns true if the |event| was handled. Otherwise, if the |event| would
// be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
// |*is_keyboard_shortcut| should be set to true.
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) = 0;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) = 0;
// Allows the BrowserWindow object to handle the specified keyboard event,
// if the renderer did not process it.
- virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0;
+ virtual void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) = 0;
// Shows the create web app shortcut dialog box.
virtual void ShowCreateWebAppShortcutsDialog(
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.h b/chrome/browser/ui/cocoa/browser_window_cocoa.h
index e47b7eb..43c52e6 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.h
@@ -114,10 +114,11 @@ class BrowserWindowCocoa : public BrowserWindow,
const content::SSLStatus& ssl,
bool show_history) OVERRIDE;
virtual void ShowAppMenu() OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ShowCreateWebAppShortcutsDialog(
TabContentsWrapper* tab_contents) OVERRIDE;
virtual void ShowCreateChromeAppShortcutsDialog(
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 537fa99..4e01a62 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -51,6 +51,7 @@
#import "chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h"
#endif
+using content::NativeWebKeyboardEvent;
using content::SSLStatus;
using content::WebContents;
diff --git a/chrome/browser/ui/cocoa/browser_window_utils.h b/chrome/browser/ui/cocoa/browser_window_utils.h
index 1b67ed9..8f32e85 100644
--- a/chrome/browser/ui/cocoa/browser_window_utils.h
+++ b/chrome/browser/ui/cocoa/browser_window_utils.h
@@ -9,16 +9,19 @@
#import <Cocoa/Cocoa.h>
class Browser;
+
+namespace content {
struct NativeWebKeyboardEvent;
+}
@interface BrowserWindowUtils : NSObject
// Returns YES if keyboard event should be handled.
-+ (BOOL)shouldHandleKeyboardEvent:(const NativeWebKeyboardEvent&)event;
++ (BOOL)shouldHandleKeyboardEvent:(const content::NativeWebKeyboardEvent&)event;
// Determines the command associated with the keyboard event.
// Returns -1 if no command found.
-+ (int)getCommandId:(const NativeWebKeyboardEvent&)event;
++ (int)getCommandId:(const content::NativeWebKeyboardEvent&)event;
// NSWindow must be a ChromeEventProcessingWindow.
+ (BOOL)handleKeyboardEvent:(NSEvent*)event
diff --git a/chrome/browser/ui/cocoa/browser_window_utils.mm b/chrome/browser/ui/cocoa/browser_window_utils.mm
index 442463d..f9c7aae 100644
--- a/chrome/browser/ui/cocoa/browser_window_utils.mm
+++ b/chrome/browser/ui/cocoa/browser_window_utils.mm
@@ -15,6 +15,8 @@
#import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
#include "content/public/browser/native_web_keyboard_event.h"
+using content::NativeWebKeyboardEvent;
+
@interface MenuWalker : NSObject
+ (NSMenuItem*)itemForKeyEquivalent:(NSEvent*)key
menu:(NSMenu*)menu;
diff --git a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
index 858a220..768545c 100644
--- a/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
+++ b/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm
@@ -24,6 +24,8 @@
#import "ui/base/cocoa/find_pasteboard.h"
#import "ui/base/cocoa/focus_tracker.h"
+using content::NativeWebKeyboardEvent;
+
const float kFindBarOpenDuration = 0.2;
const float kFindBarCloseDuration = 0.15;
const float kFindBarMoveDuration = 0.15;
diff --git a/chrome/browser/ui/cocoa/web_dialog_window_controller.mm b/chrome/browser/ui/cocoa/web_dialog_window_controller.mm
index 698fb44..4597a13 100644
--- a/chrome/browser/ui/cocoa/web_dialog_window_controller.mm
+++ b/chrome/browser/ui/cocoa/web_dialog_window_controller.mm
@@ -23,6 +23,7 @@
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/gfx/size.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
using content::WebUIMessageHandler;
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index af838c6..7ede5fb 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -107,6 +107,7 @@
#include "ui/gfx/screen.h"
#include "ui/gfx/skia_utils_gtk.h"
+using content::NativeWebKeyboardEvent;
using content::SSLStatus;
using content::WebContents;
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.h b/chrome/browser/ui/gtk/browser_window_gtk.h
index ee95bee..4b79cc7 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.h
+++ b/chrome/browser/ui/gtk/browser_window_gtk.h
@@ -144,10 +144,11 @@ class BrowserWindowGtk : public BrowserWindow,
const content::SSLStatus& ssl,
bool show_history) OVERRIDE;
virtual void ShowAppMenu() OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ShowCreateWebAppShortcutsDialog(
TabContentsWrapper* tab_contents) OVERRIDE;
virtual void ShowCreateChromeAppShortcutsDialog(
diff --git a/chrome/browser/ui/gtk/find_bar_gtk.cc b/chrome/browser/ui/gtk/find_bar_gtk.cc
index 08f2734..3e9108f 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -47,6 +47,8 @@
#include "ui/gfx/image/cairo_cached_surface.h"
#include "ui/gfx/image/image.h"
+using content::NativeWebKeyboardEvent;
+
namespace {
// Used as the color of the text in the entry box and the text for the results
diff --git a/chrome/browser/ui/gtk/web_dialog_gtk.cc b/chrome/browser/ui/gtk/web_dialog_gtk.cc
index 7b1dfa5..5bdad4c 100644
--- a/chrome/browser/ui/gtk/web_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/web_dialog_gtk.cc
@@ -21,6 +21,7 @@
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/web_contents.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
using content::WebUIMessageHandler;
diff --git a/chrome/browser/ui/gtk/web_dialog_gtk.h b/chrome/browser/ui/gtk/web_dialog_gtk.h
index 6f772ac..18c4c12 100644
--- a/chrome/browser/ui/gtk/web_dialog_gtk.h
+++ b/chrome/browser/ui/gtk/web_dialog_gtk.h
@@ -53,7 +53,7 @@ class WebDialogGtk : public WebDialogWebContentsDelegate,
// Overridden from content::WebContentsDelegate:
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void CloseContents(content::WebContents* source) OVERRIDE;
virtual content::WebContents* OpenURLFromTab(
content::WebContents* source,
diff --git a/chrome/browser/ui/panels/native_panel.h b/chrome/browser/ui/panels/native_panel.h
index 9ac3a95..340b897 100644
--- a/chrome/browser/ui/panels/native_panel.h
+++ b/chrome/browser/ui/panels/native_panel.h
@@ -60,9 +60,10 @@ class NativePanel {
virtual void DrawAttention(bool draw_attention) = 0;
virtual bool IsDrawingAttention() const = 0;
virtual bool PreHandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) = 0;
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) = 0;
virtual void HandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event) = 0;
+ const content::NativeWebKeyboardEvent& event) = 0;
virtual void FullScreenModeChanged(bool is_full_screen) = 0;
virtual Browser* GetPanelBrowser() const = 0;
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index d98d021..e4f54d1 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/ui/panels/panel_browser_view.h"
#endif
+using content::NativeWebKeyboardEvent;
using content::RenderViewHost;
using content::SSLStatus;
using content::WebContents;
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index 4072746..9f2eaca 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -168,10 +168,10 @@ class Panel : public BrowserWindow,
bool show_history) OVERRIDE;
virtual void ShowAppMenu() OVERRIDE;
virtual bool PreHandleKeyboardEvent(
- const NativeWebKeyboardEvent& event,
+ const content::NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ShowCreateWebAppShortcutsDialog(
TabContentsWrapper* tab_contents) OVERRIDE;
virtual void ShowCreateChromeAppShortcutsDialog(
diff --git a/chrome/browser/ui/panels/panel_browser_view.cc b/chrome/browser/ui/panels/panel_browser_view.cc
index d8c04ec..96f060e 100644
--- a/chrome/browser/ui/panels/panel_browser_view.cc
+++ b/chrome/browser/ui/panels/panel_browser_view.cc
@@ -22,6 +22,7 @@
#include "ui/views/controls/label.h"
#include "ui/views/widget/widget.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
NativePanel* Panel::CreateNativePanel(Browser* browser, Panel* panel,
diff --git a/chrome/browser/ui/panels/panel_browser_view.h b/chrome/browser/ui/panels/panel_browser_view.h
index ab2aa63..58892c8 100644
--- a/chrome/browser/ui/panels/panel_browser_view.h
+++ b/chrome/browser/ui/panels/panel_browser_view.h
@@ -109,11 +109,11 @@ class PanelBrowserView : public BrowserView,
virtual void DrawAttention(bool draw_attention) OVERRIDE;
virtual bool IsDrawingAttention() const OVERRIDE;
virtual bool PreHandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event,
+ const content::NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) OVERRIDE;
virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
virtual void HandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual gfx::Size WindowSizeFromContentSize(
const gfx::Size& content_size) const OVERRIDE;
virtual gfx::Size ContentSizeFromWindowSize(
diff --git a/chrome/browser/ui/panels/panel_browser_window_cocoa.h b/chrome/browser/ui/panels/panel_browser_window_cocoa.h
index 907de7f..28ce935 100644
--- a/chrome/browser/ui/panels/panel_browser_window_cocoa.h
+++ b/chrome/browser/ui/panels/panel_browser_window_cocoa.h
@@ -54,10 +54,10 @@ class PanelBrowserWindowCocoa : public NativePanel,
virtual void DrawAttention(bool draw_attention) OVERRIDE;
virtual bool IsDrawingAttention() const OVERRIDE;
virtual bool PreHandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event,
+ const content::NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
virtual Browser* GetPanelBrowser() const OVERRIDE;
virtual void DestroyPanelBrowser() OVERRIDE;
diff --git a/chrome/browser/ui/panels/panel_browser_window_cocoa.mm b/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
index f5fa4f3..4a46869 100644
--- a/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_browser_window_cocoa.mm
@@ -23,6 +23,7 @@
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/notification_source.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
namespace {
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
index 896114e..1f0fe3d 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
@@ -27,6 +27,7 @@
#include "ui/gfx/image/image.h"
#include "ui/gfx/skia_util.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
namespace {
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.h b/chrome/browser/ui/panels/panel_browser_window_gtk.h
index 4d4e62c..3c3066c 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.h
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.h
@@ -100,10 +100,10 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk,
virtual void DrawAttention(bool draw_attention) OVERRIDE;
virtual bool IsDrawingAttention() const OVERRIDE;
virtual bool PreHandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event,
+ const content::NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandlePanelKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
virtual Browser* GetPanelBrowser() const OVERRIDE;
virtual void DestroyPanelBrowser() OVERRIDE;
diff --git a/chrome/browser/ui/views/dropdown_bar_host.h b/chrome/browser/ui/views/dropdown_bar_host.h
index 8be26fb..1aba4a2 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.h
+++ b/chrome/browser/ui/views/dropdown_bar_host.h
@@ -147,7 +147,7 @@ class DropdownBarHost : public ui::AcceleratorTarget,
void SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw);
// Returns a keyboard event suitable for forwarding.
- NativeWebKeyboardEvent GetKeyboardEvent(
+ content::NativeWebKeyboardEvent GetKeyboardEvent(
const content::WebContents* contents,
const views::KeyEvent& key_event);
diff --git a/chrome/browser/ui/views/dropdown_bar_host_aura.cc b/chrome/browser/ui/views/dropdown_bar_host_aura.cc
index 226426c..293e1d9 100644
--- a/chrome/browser/ui/views/dropdown_bar_host_aura.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host_aura.cc
@@ -8,6 +8,7 @@
#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
diff --git a/chrome/browser/ui/views/dropdown_bar_host_win.cc b/chrome/browser/ui/views/dropdown_bar_host_win.cc
index 0f443b4..5440fc9 100644
--- a/chrome/browser/ui/views/dropdown_bar_host_win.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host_win.cc
@@ -12,6 +12,7 @@
#include "ui/base/keycodes/keyboard_code_conversion_win.h"
#include "ui/views/controls/scrollbar/native_scroll_bar.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
diff --git a/chrome/browser/ui/views/find_bar_host.cc b/chrome/browser/ui/views/find_bar_host.cc
index 2f58c0a..4ff640c 100644
--- a/chrome/browser/ui/views/find_bar_host.cc
+++ b/chrome/browser/ui/views/find_bar_host.cc
@@ -21,6 +21,8 @@
#include "ui/views/widget/root_view.h"
#include "ui/views/widget/widget.h"
+using content::NativeWebKeyboardEvent;
+
namespace browser {
// Declared in browser_dialogs.h so others don't have to depend on our header.
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index aa3a46f..cafd5fb 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -125,6 +125,7 @@
#endif
using base::TimeDelta;
+using content::NativeWebKeyboardEvent;
using content::SSLStatus;
using content::UserMetricsAction;
using content::WebContents;
diff --git a/chrome/browser/ui/views/frame/browser_view.h b/chrome/browser/ui/views/frame/browser_view.h
index 27b9446..8be8d25 100644
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -294,12 +294,13 @@ class BrowserView : public BrowserWindow,
const content::SSLStatus& ssl,
bool show_history) OVERRIDE;
virtual void ShowAppMenu() OVERRIDE;
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
- virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event)
- OVERRIDE;
- virtual void ShowCreateWebAppShortcutsDialog(TabContentsWrapper* tab_contents)
- OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
+ virtual void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
+ virtual void ShowCreateWebAppShortcutsDialog(
+ TabContentsWrapper* tab_contents) OVERRIDE;
virtual void ShowCreateChromeAppShortcutsDialog(
Profile*, const Extension* app) OVERRIDE;
virtual void Cut() OVERRIDE;
diff --git a/chrome/browser/ui/views/unhandled_keyboard_event_handler.h b/chrome/browser/ui/views/unhandled_keyboard_event_handler.h
index dd04639..18ce319 100644
--- a/chrome/browser/ui/views/unhandled_keyboard_event_handler.h
+++ b/chrome/browser/ui/views/unhandled_keyboard_event_handler.h
@@ -20,7 +20,7 @@ class UnhandledKeyboardEventHandler {
UnhandledKeyboardEventHandler();
~UnhandledKeyboardEventHandler();
- void HandleKeyboardEvent(const NativeWebKeyboardEvent& event,
+ void HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event,
views::FocusManager* focus_manager);
private:
diff --git a/chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc b/chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc
index 7d745e2..baa6dfc 100644
--- a/chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc
+++ b/chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc
@@ -8,6 +8,8 @@
#include "content/public/browser/native_web_keyboard_event.h"
#include "ui/views/focus/focus_manager.h"
+using content::NativeWebKeyboardEvent;
+
UnhandledKeyboardEventHandler::UnhandledKeyboardEventHandler() {
}
diff --git a/chrome/browser/ui/views/unhandled_keyboard_event_handler_win.cc b/chrome/browser/ui/views/unhandled_keyboard_event_handler_win.cc
index 726d68b..0a06116 100644
--- a/chrome/browser/ui/views/unhandled_keyboard_event_handler_win.cc
+++ b/chrome/browser/ui/views/unhandled_keyboard_event_handler_win.cc
@@ -8,6 +8,8 @@
#include "content/public/browser/native_web_keyboard_event.h"
#include "ui/views/focus/focus_manager.h"
+using content::NativeWebKeyboardEvent;
+
UnhandledKeyboardEventHandler::UnhandledKeyboardEventHandler() {
ignore_next_char_event_ = false;
}
diff --git a/chrome/browser/ui/views/web_dialog_view.cc b/chrome/browser/ui/views/web_dialog_view.cc
index 3496471..b7d4f2b 100644
--- a/chrome/browser/ui/views/web_dialog_view.cc
+++ b/chrome/browser/ui/views/web_dialog_view.cc
@@ -28,6 +28,7 @@
#include "ui/views/widget/native_widget_aura.h"
#endif
+using content::NativeWebKeyboardEvent;
using content::WebContents;
using content::WebUIMessageHandler;
diff --git a/chrome/browser/ui/views/web_dialog_view.h b/chrome/browser/ui/views/web_dialog_view.h
index 7af22cb..66c1b62 100644
--- a/chrome/browser/ui/views/web_dialog_view.h
+++ b/chrome/browser/ui/views/web_dialog_view.h
@@ -95,8 +95,8 @@ class WebDialogView
// Overridden from content::WebContentsDelegate:
virtual void MoveContents(content::WebContents* source,
const gfx::Rect& pos) OVERRIDE;
- virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event)
- OVERRIDE;
+ virtual void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void CloseContents(content::WebContents* source) OVERRIDE;
virtual content::WebContents* OpenURLFromTab(
content::WebContents* source,
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc
index 5dc3b4f..3be85ac 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc
+++ b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
#include "content/public/browser/web_contents.h"
+using content::NativeWebKeyboardEvent;
using content::WebContents;
ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase(
diff --git a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
index e80ad01..254579f 100644
--- a/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
+++ b/chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h
@@ -37,7 +37,7 @@ class ConstrainedWebDialogDelegateBase
// WebDialogWebContentsDelegate interface.
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE;
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
protected:
void set_override_tab_delegate(
diff --git a/chrome/test/base/test_browser_window.cc b/chrome/test/base/test_browser_window.cc
index 7fffa1f..89b8ad6 100644
--- a/chrome/test/base/test_browser_window.cc
+++ b/chrome/test/base/test_browser_window.cc
@@ -6,6 +6,8 @@
#include "ui/gfx/rect.h"
+using content::NativeWebKeyboardEvent;
+
TestBrowserWindow::TestBrowserWindow(Browser* browser) {}
TestBrowserWindow::~TestBrowserWindow() {}
diff --git a/chrome/test/base/test_browser_window.h b/chrome/test/base/test_browser_window.h
index 9c25d8c3..3c75b0a 100644
--- a/chrome/test/base/test_browser_window.h
+++ b/chrome/test/base/test_browser_window.h
@@ -66,10 +66,11 @@ class TestBrowserWindow : public BrowserWindow {
virtual void FocusBookmarksToolbar() OVERRIDE {}
virtual void RotatePaneFocus(bool forwards) OVERRIDE {}
virtual void ShowAppMenu() OVERRIDE {}
- virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) OVERRIDE;
+ virtual bool PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) OVERRIDE {}
+ const content::NativeWebKeyboardEvent& event) OVERRIDE {}
virtual void ShowCreateWebAppShortcutsDialog(
TabContentsWrapper* tab_contents) OVERRIDE {}
virtual void ShowCreateChromeAppShortcutsDialog(
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 62c7fc8..312bee4 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -80,6 +80,7 @@
#endif
using content::DomOperationNotificationDetails;
+using content::NativeWebKeyboardEvent;
using content::NavigationController;
using content::NavigationEntry;
using content::OpenURLParams;