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

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

Issue 10388141: Full-screen Magnifier: Support warping the cursor on the edge (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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_AURA_EVENT_H_ 5 #ifndef UI_AURA_EVENT_H_
6 #define UI_AURA_EVENT_H_ 6 #define UI_AURA_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 static bool IsRepeatedClickEvent( 164 static bool IsRepeatedClickEvent(
165 const MouseEvent& event1, 165 const MouseEvent& event1,
166 const MouseEvent& event2); 166 const MouseEvent& event2);
167 167
168 // Get the click count. Can be 1, 2 or 3 for mousedown messages, 0 otherwise. 168 // Get the click count. Can be 1, 2 or 3 for mousedown messages, 0 otherwise.
169 int GetClickCount() const; 169 int GetClickCount() const;
170 170
171 // Set the click count for a mousedown message. Can be 1, 2 or 3. 171 // Set the click count for a mousedown message. Can be 1, 2 or 3.
172 void SetClickCount(int click_count); 172 void SetClickCount(int click_count);
173 173
174 // Returns the type of this event has location or not.
175 bool HasLocation() { return type() != ui::ET_MOUSE_CAPTURE_CHANGED; }
sky 2012/05/16 15:40:48 I don't think its worth adding this.
yoshiki 2012/05/17 17:19:32 Done.
176
174 private: 177 private:
175 gfx::Point root_location_; 178 gfx::Point root_location_;
176 179
177 static MouseEvent* last_click_event_; 180 static MouseEvent* last_click_event_;
178 // Returns the repeat count based on the previous mouse click, if it is 181 // Returns the repeat count based on the previous mouse click, if it is
179 // recent enough and within a small enough distance. 182 // recent enough and within a small enough distance.
180 static int GetRepeatCount(const MouseEvent& click_event); 183 static int GetRepeatCount(const MouseEvent& click_event);
181 184
182 DISALLOW_COPY_AND_ASSIGN(MouseEvent); 185 DISALLOW_COPY_AND_ASSIGN(MouseEvent);
183 }; 186 };
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // This value is stored as a bitfield because the number of touch ids varies, 390 // This value is stored as a bitfield because the number of touch ids varies,
388 // but we currently don't need more than 32 touches at a time. 391 // but we currently don't need more than 32 touches at a time.
389 const unsigned int touch_ids_bitfield_; 392 const unsigned int touch_ids_bitfield_;
390 393
391 DISALLOW_COPY_AND_ASSIGN(GestureEvent); 394 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
392 }; 395 };
393 396
394 } // namespace aura 397 } // namespace aura
395 398
396 #endif // UI_AURA_EVENT_H_ 399 #endif // UI_AURA_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698