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

Unified Diff: chrome/browser/views/find_bar_host.cc

Issue 3361003: Revert 58215 - Revert 58186 - Move the keyboard files from base/ to app/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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: chrome/browser/views/find_bar_host.cc
===================================================================
--- chrome/browser/views/find_bar_host.cc (revision 58386)
+++ chrome/browser/views/find_bar_host.cc (working copy)
@@ -4,7 +4,7 @@
#include "chrome/browser/views/find_bar_host.h"
-#include "base/keyboard_codes.h"
+#include "app/keyboard_codes.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/find_bar_controller.h"
@@ -48,13 +48,13 @@
}
switch (key_stroke.GetKeyboardCode()) {
- case base::VKEY_DOWN:
- case base::VKEY_UP:
- case base::VKEY_PRIOR:
- case base::VKEY_NEXT:
+ case app::VKEY_DOWN:
+ case app::VKEY_UP:
+ case app::VKEY_PRIOR:
+ case app::VKEY_NEXT:
break;
- case base::VKEY_HOME:
- case base::VKEY_END:
+ case app::VKEY_HOME:
+ case app::VKEY_END:
if (key_stroke.IsControlHeld())
break;
// Fall through.
@@ -161,11 +161,11 @@
// FindBarWin, views::AcceleratorTarget implementation:
bool FindBarHost::AcceleratorPressed(const views::Accelerator& accelerator) {
- base::KeyboardCode key = accelerator.GetKeyCode();
- if (key == base::VKEY_RETURN && accelerator.IsCtrlDown()) {
+ app::KeyboardCode key = accelerator.GetKeyCode();
+ if (key == app::VKEY_RETURN && accelerator.IsCtrlDown()) {
// Ctrl+Enter closes the Find session and navigates any link that is active.
find_bar_controller_->EndFindSession(FindBarController::kActivateSelection);
- } else if (key == base::VKEY_ESCAPE) {
+ } else if (key == app::VKEY_ESCAPE) {
// This will end the Find session and hide the window, causing it to loose
// focus and in the process unregister us as the handler for the Escape
// accelerator through the FocusWillChange event.
@@ -277,13 +277,13 @@
DropdownBarHost::RegisterAccelerators();
// Register for Ctrl+Return.
- views::Accelerator escape(base::VKEY_RETURN, false, true, false);
+ views::Accelerator escape(app::VKEY_RETURN, false, true, false);
focus_manager()->RegisterAccelerator(escape, this);
}
void FindBarHost::UnregisterAccelerators() {
// Unregister Ctrl+Return.
- views::Accelerator escape(base::VKEY_RETURN, false, true, false);
+ views::Accelerator escape(app::VKEY_RETURN, false, true, false);
focus_manager()->UnregisterAccelerator(escape, this);
DropdownBarHost::UnregisterAccelerators();
« no previous file with comments | « chrome/browser/views/extensions/extension_view.cc ('k') | chrome/browser/views/find_bar_host_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698