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

Side by Side Diff: ui/events/event.h

Issue 155493002: Add key based scrolling on magnified screen for kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_EVENT_H_ 5 #ifndef UI_EVENTS_EVENT_H_
6 #define UI_EVENTS_EVENT_H_ 6 #define UI_EVENTS_EVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 private: 44 private:
45 DispatcherApi(); 45 DispatcherApi();
46 Event* event_; 46 Event* event_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(DispatcherApi); 48 DISALLOW_COPY_AND_ASSIGN(DispatcherApi);
49 }; 49 };
50 50
51 const base::NativeEvent& native_event() const { return native_event_; } 51 const base::NativeEvent& native_event() const { return native_event_; }
52 EventType type() const { return type_; } 52 EventType type() const { return type_; }
53 void set_type(EventType type) { type_ = type; }
53 const std::string& name() const { return name_; } 54 const std::string& name() const { return name_; }
54 // time_stamp represents time since machine was booted. 55 // time_stamp represents time since machine was booted.
55 const base::TimeDelta& time_stamp() const { return time_stamp_; } 56 const base::TimeDelta& time_stamp() const { return time_stamp_; }
56 int flags() const { return flags_; } 57 int flags() const { return flags_; }
57 58
58 // This is only intended to be used externally by classes that are modifying 59 // This is only intended to be used externally by classes that are modifying
59 // events in EventFilter::PreHandleKeyEvent(). 60 // events in EventFilter::PreHandleKeyEvent().
60 void set_flags(int flags) { flags_ = flags; } 61 void set_flags(int flags) { flags_ = flags; }
61 62
62 EventTarget* target() const { return target_; } 63 EventTarget* target() const { return target_; }
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 // The set of indices of ones in the binary representation of 693 // The set of indices of ones in the binary representation of
693 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. 694 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture.
694 // This value is stored as a bitfield because the number of touch ids varies, 695 // This value is stored as a bitfield because the number of touch ids varies,
695 // but we currently don't need more than 32 touches at a time. 696 // but we currently don't need more than 32 touches at a time.
696 const unsigned int touch_ids_bitfield_; 697 const unsigned int touch_ids_bitfield_;
697 }; 698 };
698 699
699 } // namespace ui 700 } // namespace ui
700 701
701 #endif // UI_EVENTS_EVENT_H_ 702 #endif // UI_EVENTS_EVENT_H_
OLDNEW
« ash/magnifier/magnification_controller.h ('K') | « chrome/browser/ui/ash/event_rewriter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698