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: chrome/views/event.h

Issue 21268: Solved 2 bugs which caused Chrome to maximize itself when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 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 { EF_IS_DOUBLE_CLICK = 1 << 16 }; 159 enum MouseEventFlags {
160 EF_IS_DOUBLE_CLICK = 1 << 16,
161 EF_IS_NON_CLIENT = 1 << 17
162 };
160 163
161 // Create a new mouse event 164 // Create a new mouse event
162 MouseEvent(EventType type, int x, int y, int flags) 165 MouseEvent(EventType type, int x, int y, int flags)
163 : LocatedEvent(type, gfx::Point(x, y), flags) { 166 : LocatedEvent(type, gfx::Point(x, y), flags) {
164 } 167 }
165 168
166 // Create a new mouse event from a type and a point. If from / to views 169 // Create a new mouse event from a type and a point. If from / to views
167 // are provided, the point will be converted from 'from' coordinate system to 170 // are provided, the point will be converted from 'from' coordinate system to
168 // 'to' coordinate system. 171 // 'to' coordinate system.
169 MouseEvent(EventType type, 172 MouseEvent(EventType type,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 const OSExchangeData& data_; 304 const OSExchangeData& data_;
302 int source_operations_; 305 int source_operations_;
303 306
304 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent); 307 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent);
305 }; 308 };
306 309
307 } // namespace views 310 } // namespace views
308 311
309 #endif // CHROME_VIEWS_EVENT_H__ 312 #endif // CHROME_VIEWS_EVENT_H__
310 313
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698