Home | History | Annotate | Download | only in accelerators

Lines Matching defs:Accelerator

5 // This class describe a keyboard accelerator (or keyboard shortcut).
25 // This is a cross-platform class for accelerator keys used in menus.
27 class UI_BASE_EXPORT Accelerator {
29 Accelerator();
30 Accelerator(ui::KeyboardCode keycode, int modifiers);
31 Accelerator(const Accelerator& accelerator);
32 ~Accelerator();
34 Accelerator& operator=(const Accelerator& accelerator);
38 bool operator <(const Accelerator& rhs) const;
40 bool operator ==(const Accelerator& rhs) const;
42 bool operator !=(const Accelerator& rhs) const;
46 // Sets the event type if the accelerator should be processed on an event
83 // True if the accelerator is created for an auto repeated key event.
94 // Should return true if the accelerator was processed.
95 virtual bool AcceleratorPressed(const Accelerator& accelerator) = 0;
97 // Should return true if the target can handle the accelerator events. The
106 // Since accelerator code is one of the few things that can't be cross platform
111 // Gets the accelerator for the specified command id. Returns true if the
112 // command id has a valid accelerator, false otherwise.
114 ui::Accelerator* accelerator) = 0;