/external/chromium_org/chrome/browser/ui/gtk/ |
H A D | accelerators_gtk_unittest.cc | 15 const ui::Accelerator* accelerator = local 17 ASSERT_TRUE(accelerator); 19 GetGdkKeyCodeForAccelerator(*accelerator)); 20 EXPECT_EQ(GDK_CONTROL_MASK, GetGdkModifierForAccelerator(*accelerator)); 25 const ui::Accelerator* accelerator = local 27 EXPECT_FALSE(accelerator);
|
H A D | accelerator_utils_gtk.cc | 7 #include "ui/base/accelerators/accelerator.h" 11 bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) { argument 15 if (iter->second.key_code() == accelerator.key_code() && 16 iter->second.modifiers() == accelerator.modifiers())
|
/external/chromium_org/ash/system/chromeos/ |
H A D | keyboard_brightness_controller.cc | 12 #include "ui/base/accelerators/accelerator.h" 17 const ui::Accelerator& accelerator) { 18 if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_DOWN) { 29 const ui::Accelerator& accelerator) { 30 if (accelerator.key_code() == ui::VKEY_BRIGHTNESS_UP) { 16 HandleKeyboardBrightnessDown( const ui::Accelerator& accelerator) argument 28 HandleKeyboardBrightnessUp( const ui::Accelerator& accelerator) argument
|
H A D | keyboard_brightness_controller.h | 26 const ui::Accelerator& accelerator) OVERRIDE; 28 const ui::Accelerator& accelerator) OVERRIDE;
|
/external/chromium_org/ash/ |
H A D | ime_control_delegate.h | 20 virtual bool HandlePreviousIme(const ui::Accelerator& accelerator) = 0; 21 // Switches to another IME depending on the |accelerator|. 22 virtual bool HandleSwitchIme(const ui::Accelerator& accelerator) = 0; 24 // Checks for special language anomalies and re-map the |accelerator| 27 const ui::Accelerator& accelerator) = 0;
|
H A D | volume_control_delegate.h | 19 virtual bool HandleVolumeMute(const ui::Accelerator& accelerator) = 0; 20 virtual bool HandleVolumeDown(const ui::Accelerator& accelerator) = 0; 21 virtual bool HandleVolumeUp(const ui::Accelerator& accelerator) = 0;
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | accelerator_utils_aura.cc | 7 #include "ui/base/accelerators/accelerator.h" 15 bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) { argument 19 if (accel_data.keycode == accelerator.key_code() && 20 accel_data.modifiers == accelerator.modifiers()) { 30 if (it->keycode == accelerator.key_code() && 31 it->modifiers == accelerator.modifiers())
|
H A D | accelerator_utils_views.cc | 5 #include "ui/base/accelerators/accelerator.h" 15 bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) { argument 22 return browser_view->IsAcceleratorRegistered(accelerator);
|
/external/chromium_org/chrome/browser/ui/gtk/extensions/ |
H A D | extension_keybinding_registry_gtk.cc | 52 ui::Accelerator accelerator = ui::AcceleratorForGdkKeyCodeAndModifier( 55 return event_targets_.find(accelerator) != event_targets_.end(); 75 ui::Accelerator accelerator(iter->second.accelerator()); 76 event_targets_[accelerator].push_back( 81 if (!extensions::CommandService::IsMediaKey(iter->second.accelerator())) 82 DCHECK_EQ(1u, event_targets_[accelerator].size()); 91 ui::GetGdkKeyCodeForAccelerator(accelerator), 92 ui::GetGdkModifierForAccelerator(accelerator), 106 ui::Accelerator accelerator(browser_actio 142 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument 160 ui::Accelerator accelerator = ui::AcceleratorForGdkKeyCodeAndModifier( local [all...] |
/external/chromium_org/chrome/browser/extensions/ |
H A D | global_shortcut_listener.cc | 7 #include "ui/base/accelerators/accelerator.h" 19 const ui::Accelerator& accelerator, Observer* observer) { 20 AcceleratorMap::const_iterator it = accelerator_map_.find(accelerator); 26 accelerator_map_[accelerator] = observers; 28 // Make sure we don't register the same accelerator twice. 29 DCHECK(!accelerator_map_[accelerator]->HasObserver(observer)); 30 accelerator_map_[accelerator]->AddObserver(observer); 35 const ui::Accelerator& accelerator, Observer* observer) { 36 AcceleratorMap::iterator it = accelerator_map_.find(accelerator); 48 const ui::Accelerator& accelerator) { 18 RegisterAccelerator( const ui::Accelerator& accelerator, Observer* observer) argument 34 UnregisterAccelerator( const ui::Accelerator& accelerator, Observer* observer) argument 47 NotifyKeyPressed( const ui::Accelerator& accelerator) argument [all...] |
H A D | global_shortcut_listener_x11.cc | 9 #include "ui/base/accelerators/accelerator.h" 41 int GetNativeModifiers(const ui::Accelerator& accelerator) { argument 43 modifiers |= accelerator.IsShiftDown() ? ShiftMask : 0; 44 modifiers |= accelerator.IsCtrlDown() ? ControlMask : 0; 45 modifiers |= accelerator.IsAltDown() ? Mod1Mask : 0; 111 const ui::Accelerator& accelerator, 113 if (registered_hot_keys_.find(accelerator) != registered_hot_keys_.end()) { 116 // accelerator. 120 int modifiers = GetNativeModifiers(accelerator); 121 KeyCode keycode = XKeysymToKeycode(x_display_, accelerator 110 RegisterAccelerator( const ui::Accelerator& accelerator, GlobalShortcutListener::Observer* observer) argument 147 UnregisterAccelerator( const ui::Accelerator& accelerator, GlobalShortcutListener::Observer* observer) argument [all...] |
H A D | global_shortcut_listener_win.cc | 9 #include "ui/base/accelerators/accelerator.h" 66 ui::Accelerator accelerator( 69 instance.Get().NotifyKeyPressed(accelerator); 73 const ui::Accelerator& accelerator, 75 if (hotkey_ids_.find(accelerator) != hotkey_ids_.end()) { 78 // accelerator. 83 modifiers |= accelerator.IsShiftDown() ? MOD_SHIFT : 0; 84 modifiers |= accelerator.IsCtrlDown() ? MOD_CONTROL : 0; 85 modifiers |= accelerator.IsAltDown() ? MOD_ALT : 0; 91 accelerator 72 RegisterAccelerator( const ui::Accelerator& accelerator, GlobalShortcutListener::Observer* observer) argument 103 UnregisterAccelerator( const ui::Accelerator& accelerator, GlobalShortcutListener::Observer* observer) argument [all...] |
H A D | extension_commands_global_registry.cc | 77 << " key: " << iter->second.accelerator().GetShortcutText(); 79 event_targets_[iter->second.accelerator()].push_back( 83 if (!extensions::CommandService::IsMediaKey(iter->second.accelerator())) 84 DCHECK(event_targets_[iter->second.accelerator()].size() == 1); 87 iter->second.accelerator(), this); 92 const ui::Accelerator& accelerator, 97 accelerator, this); 101 const ui::Accelerator& accelerator) { 102 ExtensionKeybindingRegistry::NotifyEventTargets(accelerator); 91 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument 100 OnKeyPressed( const ui::Accelerator& accelerator) argument
|
/external/chromium_org/chrome/browser/ui/ash/ |
H A D | ime_controller_chromeos.h | 21 virtual bool HandlePreviousIme(const ui::Accelerator& accelerator) OVERRIDE; 22 virtual bool HandleSwitchIme(const ui::Accelerator& accelerator) OVERRIDE; 24 const ui::Accelerator& accelerator) OVERRIDE;
|
H A D | ime_controller_chromeos.cc | 8 #include "ui/base/accelerators/accelerator.h" 16 bool ImeController::HandlePreviousIme(const ui::Accelerator& accelerator) { argument 19 return manager->SwitchToPreviousInputMethod(accelerator); 22 bool ImeController::HandleSwitchIme(const ui::Accelerator& accelerator) { argument 25 return manager->SwitchInputMethod(accelerator); 29 const ui::Accelerator& accelerator) { 30 ui::KeyboardCode key = accelerator.key_code(); 31 int modifiers = accelerator.modifiers(); 33 // with the shift key. To get the right accelerator from our static table 34 // we modify the received accelerator t 28 RemapAccelerator( const ui::Accelerator& accelerator) argument [all...] |
H A D | volume_controller_chromeos.h | 22 virtual bool HandleVolumeMute(const ui::Accelerator& accelerator) OVERRIDE; 23 virtual bool HandleVolumeDown(const ui::Accelerator& accelerator) OVERRIDE; 24 virtual bool HandleVolumeUp(const ui::Accelerator& accelerator) OVERRIDE;
|
/external/chromium_org/ash/accelerators/ |
H A D | focus_manager_factory.cc | 23 const ui::Accelerator& accelerator) { 27 return controller->Process(accelerator); 33 const ui::Accelerator& accelerator) const { 36 if (controller && controller->IsRegistered(accelerator)) 22 ProcessAccelerator( const ui::Accelerator& accelerator) argument
|
/external/chromium_org/ui/base/accelerators/ |
H A D | accelerator_manager.cc | 19 void AcceleratorManager::Register(const Accelerator& accelerator, argument 22 AcceleratorTargetList& targets = accelerators_[accelerator].second; 28 DCHECK(!accelerators_[accelerator].first) 31 // Mark that we have a priority accelerator at the front. 32 accelerators_[accelerator].first = true; 36 // We are registering a normal priority handler. If no priority accelerator 39 if (!accelerators_[accelerator].first) 45 void AcceleratorManager::Unregister(const Accelerator& accelerator, argument 47 AcceleratorMap::iterator map_iter = accelerators_.find(accelerator); 49 NOTREACHED() << "Unregistering non-existing accelerator"; 78 Process(const Accelerator& accelerator) argument [all...] |
H A D | platform_accelerator_gtk.cc | 67 ui::Accelerator accelerator(ui::WindowsKeyCodeForGdkKeyCode(gdk_key_code), 71 accelerator.set_platform_accelerator(platform_accelerator.Pass()); 72 return accelerator; 75 guint GetGdkKeyCodeForAccelerator(const Accelerator& accelerator) { argument 76 if (accelerator.platform_accelerator()) { 78 accelerator.platform_accelerator())->gdk_key_code(); 80 // The second parameter is false because accelerator keys are expressed in 82 return GdkKeyCodeForWindowsKeyCode(accelerator.key_code(), false); 85 GdkModifierType GetGdkModifierForAccelerator(const Accelerator& accelerator) { argument 86 if (accelerator [all...] |
/external/chromium_org/ash/system/ |
H A D | brightness_control_delegate.h | 21 // Handles an accelerator-driven request to decrease or increase the screen 23 virtual bool HandleBrightnessDown(const ui::Accelerator& accelerator) = 0; 24 virtual bool HandleBrightnessUp(const ui::Accelerator& accelerator) = 0;
|
/external/chromium_org/ash/system/keyboard_brightness/ |
H A D | keyboard_brightness_control_delegate.h | 19 // Handles an accelerator-driven request to decrease or increase the keyboard 22 const ui::Accelerator& accelerator) = 0; 24 const ui::Accelerator& accelerator) = 0;
|
/external/chromium_org/ui/views/focus/ |
H A D | focus_manager_delegate.h | 22 // Activate the target associated with the specified accelerator. 27 // Returns true if an accelerator was activated. 28 virtual bool ProcessAccelerator(const ui::Accelerator& accelerator) = 0; 31 // keyboard accelerator, or NULL if no view is registered for that keyboard 32 // accelerator. 34 const ui::Accelerator& accelerator) const = 0;
|
/external/chromium_org/chrome/browser/ui/views/extensions/ |
H A D | extension_keybinding_registry_views.cc | 60 event_targets_[iter->second.accelerator()].push_back( 64 if (!extensions::CommandService::IsMediaKey(iter->second.accelerator())) 65 DCHECK_EQ(1u, event_targets_[iter->second.accelerator()].size()); 66 if (event_targets_[iter->second.accelerator()].size() > 1) 70 iter->second.accelerator(), 76 const ui::Accelerator& accelerator, 78 focus_manager_->UnregisterAccelerator(accelerator, this); 82 const ui::Accelerator& accelerator) { 83 return ExtensionKeybindingRegistry::NotifyEventTargets(accelerator); 75 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument 81 AcceleratorPressed( const ui::Accelerator& accelerator) argument
|
/external/chromium/chrome/browser/ui/views/ |
H A D | keyboard_overlay_dialog_view.cc | 62 views::Accelerator accelerator(kCloseAccelerators[i].keycode, 66 close_accelerators_.insert(accelerator); 67 AddAccelerator(accelerator); 71 views::Accelerator accelerator(browser::kAcceleratorMap[i].keycode, 76 if (views::Accelerator(ui::VKEY_MENU, false, false, false) == accelerator) { 80 if (IsCloseAccelerator(accelerator)) { 83 AddAccelerator(accelerator); 90 const views::Accelerator& accelerator) { 91 if (!IsCloseAccelerator(accelerator)) { 92 parent_view_->AcceleratorPressed(accelerator); 89 AcceleratorPressed( const views::Accelerator& accelerator) argument 115 IsCloseAccelerator( const views::Accelerator& accelerator) argument [all...] |
/external/chromium_org/chrome/browser/extensions/api/commands/ |
H A D | command_service_browsertest.cc | 66 ui::Accelerator accelerator = command_service->FindCommandByName( local 67 kId, manifest_values::kBrowserActionCommandEvent).accelerator(); 68 EXPECT_EQ(ui::VKEY_F, accelerator.key_code()); 69 EXPECT_FALSE(accelerator.IsCtrlDown()); 70 EXPECT_TRUE(accelerator.IsShiftDown()); 71 EXPECT_TRUE(accelerator.IsAltDown()); 78 accelerator = command_service->FindCommandByName( 79 kId, manifest_values::kBrowserActionCommandEvent).accelerator(); 80 EXPECT_EQ(ui::VKEY_UNKNOWN, accelerator.key_code()); 87 accelerator [all...] |