summaryrefslogtreecommitdiffstats
path: root/chrome/views/accelerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/accelerator.h')
-rw-r--r--chrome/views/accelerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/accelerator.h b/chrome/views/accelerator.h
index 867423c..a851b0c 100644
--- a/chrome/views/accelerator.h
+++ b/chrome/views/accelerator.h
@@ -58,6 +58,10 @@ class Accelerator {
return (key_code_ == rhs.key_code_) && (modifiers_ == rhs.modifiers_);
}
+ bool operator !=(const Accelerator& rhs) const {
+ return !(*this == rhs);
+ }
+
bool IsShiftDown() const {
return (modifiers_ & Event::EF_SHIFT_DOWN) == Event::EF_SHIFT_DOWN;
}