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

Unified Diff: ui/base/accelerators/accelerator.h

Issue 10446010: wip: Add ui::EventType parameter. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip - views_unittests Created 8 years, 7 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
« no previous file with comments | « chrome/common/extensions/command_unittest.cc ('k') | ui/base/accelerators/accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/accelerators/accelerator.h
diff --git a/ui/base/accelerators/accelerator.h b/ui/base/accelerators/accelerator.h
index 33beaa41fb23e63b623e7d5618b1d0d2ea6d05ce..e4ac03cb2a2d65f5279872b8ba6a6d5aab535c9d 100644
--- a/ui/base/accelerators/accelerator.h
+++ b/ui/base/accelerators/accelerator.h
@@ -24,7 +24,7 @@ namespace ui {
class UI_EXPORT Accelerator {
public:
Accelerator();
- Accelerator(ui::KeyboardCode keycode, int modifiers);
+ Accelerator(ui::KeyboardCode keycode, int modifiers, ui::EventType type);
Accelerator(const Accelerator& accelerator);
~Accelerator();
@@ -39,10 +39,6 @@ class UI_EXPORT Accelerator {
bool operator !=(const Accelerator& rhs) const;
ui::KeyboardCode key_code() const { return key_code_; }
-
- // Sets the event type if the accelerator should be processed on an event
- // other than ui::ET_KEY_PRESSED.
- void set_type(ui::EventType type) { type_ = type; }
ui::EventType type() const { return type_; }
int modifiers() const { return modifiers_; }
« no previous file with comments | « chrome/common/extensions/command_unittest.cc ('k') | ui/base/accelerators/accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698