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

Unified Diff: ui/events/ozone/gamepad/gamepad_event.h

Issue 2879993002: Add const to GamepadEvent functions (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/gamepad/gamepad_event.h
diff --git a/ui/events/ozone/gamepad/gamepad_event.h b/ui/events/ozone/gamepad/gamepad_event.h
index c0c53491de11bb6fc98fcaf0e2a39adb70dbf33b..61e32bd86d5ce70014592eaa9508630bd98271d5 100644
--- a/ui/events/ozone/gamepad/gamepad_event.h
+++ b/ui/events/ozone/gamepad/gamepad_event.h
@@ -18,15 +18,15 @@ class GamepadEvent {
double value,
base::TimeTicks timestamp);
- int device_id() { return device_id_; }
+ int device_id() const { return device_id_; }
- GamepadEventType type() { return type_; }
+ GamepadEventType type() const { return type_; }
- uint16_t code() { return code_; }
+ uint16_t code() const { return code_; }
- double value() { return value_; }
+ double value() const { return value_; }
- base::TimeTicks timestamp() { return timestamp_; }
+ base::TimeTicks timestamp() const { return timestamp_; }
private:
int device_id_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698