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

Side by Side Diff: chrome/views/event.h

Issue 40124: Revert r9953 since it caused regressions like: (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/views/root_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_EVENT_H__ 5 #ifndef CHROME_VIEWS_EVENT_H__
6 #define CHROME_VIEWS_EVENT_H__ 6 #define CHROME_VIEWS_EVENT_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gfx/point.h" 9 #include "base/gfx/point.h"
10 #include "webkit/glue/window_open_disposition.h" 10 #include "webkit/glue/window_open_disposition.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 //////////////////////////////////////////////////////////////////////////////// 149 ////////////////////////////////////////////////////////////////////////////////
150 // 150 //
151 // MouseEvent class 151 // MouseEvent class
152 // 152 //
153 // A mouse event is used for any input event related to the mouse. 153 // A mouse event is used for any input event related to the mouse.
154 // 154 //
155 //////////////////////////////////////////////////////////////////////////////// 155 ////////////////////////////////////////////////////////////////////////////////
156 class MouseEvent : public LocatedEvent { 156 class MouseEvent : public LocatedEvent {
157 public: 157 public:
158 // Flags specific to mouse events 158 // Flags specific to mouse events
159 enum MouseEventFlags { 159 enum MouseEventFlags { EF_IS_DOUBLE_CLICK = 1 << 16 };
160 EF_IS_DOUBLE_CLICK = 1 << 16,
161 EF_IS_NON_CLIENT = 1 << 17
162 };
163 160
164 // Create a new mouse event 161 // Create a new mouse event
165 MouseEvent(EventType type, int x, int y, int flags) 162 MouseEvent(EventType type, int x, int y, int flags)
166 : LocatedEvent(type, gfx::Point(x, y), flags) { 163 : LocatedEvent(type, gfx::Point(x, y), flags) {
167 } 164 }
168 165
169 // Create a new mouse event from a type and a point. If from / to views 166 // Create a new mouse event from a type and a point. If from / to views
170 // are provided, the point will be converted from 'from' coordinate system to 167 // are provided, the point will be converted from 'from' coordinate system to
171 // 'to' coordinate system. 168 // 'to' coordinate system.
172 MouseEvent(EventType type, 169 MouseEvent(EventType type,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 const OSExchangeData& data_; 301 const OSExchangeData& data_;
305 int source_operations_; 302 int source_operations_;
306 303
307 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent); 304 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent);
308 }; 305 };
309 306
310 } // namespace views 307 } // namespace views
311 308
312 #endif // CHROME_VIEWS_EVENT_H__ 309 #endif // CHROME_VIEWS_EVENT_H__
313 310
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/views/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698