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

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

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No longer using screen coordinates Created 8 years, 4 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
« no previous file with comments | « no previous file | ui/views/events/event.cc » ('j') | ui/views/view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEWS_EVENTS_EVENT_H_ 5 #ifndef UI_VIEWS_EVENTS_EVENT_H_
6 #define UI_VIEWS_EVENTS_EVENT_H_ 6 #define UI_VIEWS_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/logging.h" 10 #include "base/logging.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 virtual ~GestureEvent(); 432 virtual ~GestureEvent();
433 433
434 const ui::GestureEventDetails& details() const { return details_; } 434 const ui::GestureEventDetails& details() const { return details_; }
435 435
436 protected: 436 protected:
437 GestureEvent(ui::EventType type, int x, int y, int flags); 437 GestureEvent(ui::EventType type, int x, int y, int flags);
438 438
439 private: 439 private:
440 friend class internal::RootView; 440 friend class internal::RootView;
441 friend class GestureEventForTest;
441 442
442 GestureEvent(const GestureEvent& model, View* root); 443 GestureEvent(const GestureEvent& model, View* root);
443 444
444 // Overridden from ui::GestureEvent. 445 // Overridden from ui::GestureEvent.
445 virtual int GetLowestTouchId() const OVERRIDE; 446 virtual int GetLowestTouchId() const OVERRIDE;
446 447
447 ui::GestureEventDetails details_; 448 ui::GestureEventDetails details_;
448 449
449 DISALLOW_COPY_AND_ASSIGN(GestureEvent); 450 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
450 }; 451 };
451 452
452 class VIEWS_EXPORT GestureEventForTest : public GestureEvent { 453 class VIEWS_EXPORT GestureEventForTest : public GestureEvent {
453 public: 454 public:
454 GestureEventForTest(ui::EventType type, int x, int y, int flags); 455 GestureEventForTest(ui::EventType type, int x, int y, int flags);
456 void set_details(const ui::GestureEventDetails details) {
457 details_ = details;
458 }
455 459
456 private: 460 private:
457 DISALLOW_COPY_AND_ASSIGN(GestureEventForTest); 461 DISALLOW_COPY_AND_ASSIGN(GestureEventForTest);
458 }; 462 };
459 463
460 #if defined(OS_WIN) 464 #if defined(OS_WIN)
461 int GetModifiersFromKeyState(); 465 int GetModifiersFromKeyState();
462 #endif 466 #endif
463 467
464 } // namespace views 468 } // namespace views
465 469
466 #endif // UI_VIEWS_EVENTS_EVENT_H_ 470 #endif // UI_VIEWS_EVENTS_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/events/event.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698