diff options
Diffstat (limited to 'views/controls/tabbed_pane/tabbed_pane.cc')
-rw-r--r-- | views/controls/tabbed_pane/tabbed_pane.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/controls/tabbed_pane/tabbed_pane.cc b/views/controls/tabbed_pane/tabbed_pane.cc index 78ed6d2..5ea39cf 100644 --- a/views/controls/tabbed_pane/tabbed_pane.cc +++ b/views/controls/tabbed_pane/tabbed_pane.cc @@ -4,6 +4,7 @@ #include "views/controls/tabbed_pane/tabbed_pane.h" +#include "base/keyboard_codes.h" #include "base/logging.h" #include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" @@ -74,7 +75,8 @@ void TabbedPane::ViewHierarchyChanged(bool is_add, View* parent, View* child) { bool TabbedPane::AcceleratorPressed(const views::Accelerator& accelerator) { // We only accept Ctrl+Tab keyboard events. - DCHECK(accelerator.GetKeyCode() == VK_TAB && accelerator.IsCtrlDown()); + DCHECK(accelerator.GetKeyCode() == + base::VKEY_TAB && accelerator.IsCtrlDown()); int tab_count = GetTabCount(); if (tab_count <= 1) @@ -92,9 +94,9 @@ bool TabbedPane::AcceleratorPressed(const views::Accelerator& accelerator) { void TabbedPane::LoadAccelerators() { // Ctrl+Shift+Tab - AddAccelerator(views::Accelerator(VK_TAB, true, true, false)); + AddAccelerator(views::Accelerator(base::VKEY_TAB, true, true, false)); // Ctrl+Tab - AddAccelerator(views::Accelerator(VK_TAB, false, true, false)); + AddAccelerator(views::Accelerator(base::VKEY_TAB, false, true, false)); } void TabbedPane::Layout() { |