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

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

Issue 115012: Move: drag_drop_types, favicon_size, icon_util, insets, path, message_box_fla... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/views/controls/tree/tree_view.cc ('k') | chrome/views/event.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 9
10 #if defined(OS_LINUX) 10 #if defined(OS_LINUX)
11 #include <gdk/gdk.h> 11 #include <gdk/gdk.h>
12 #endif 12 #endif
13 13
14 #include "base/gfx/point.h" 14 #include "base/gfx/point.h"
15 #include "webkit/glue/window_open_disposition.h"
16 15
17 class OSExchangeData; 16 class OSExchangeData;
18 17
19 namespace views { 18 namespace views {
20 19
21 class View; 20 class View;
22 21
23 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
24 // 23 //
25 // Event class 24 // Event class
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Returns the EventFlags in terms of windows flags. 92 // Returns the EventFlags in terms of windows flags.
94 int GetWindowsFlags() const; 93 int GetWindowsFlags() const;
95 94
96 // Convert windows flags to views::Event flags 95 // Convert windows flags to views::Event flags
97 static int ConvertWindowsFlags(uint32 win_flags); 96 static int ConvertWindowsFlags(uint32 win_flags);
98 #elif defined(OS_LINUX) 97 #elif defined(OS_LINUX)
99 // Convert the state member on a GdkEvent to views::Event flags 98 // Convert the state member on a GdkEvent to views::Event flags
100 static int GetFlagsFromGdkState(int state); 99 static int GetFlagsFromGdkState(int state);
101 #endif 100 #endif
102 101
103 // Convert WebInputEvent::Modifiers flags to views::Event flags.
104 // Note that this only deals with keyboard modifiers.
105 static int ConvertWebInputEventFlags(int web_input_event_flags);
106
107 protected: 102 protected:
108 Event(EventType type, int flags); 103 Event(EventType type, int flags);
109 104
110 Event(const Event& model) 105 Event(const Event& model)
111 : type_(model.GetType()), 106 : type_(model.GetType()),
112 time_stamp_(model.GetTimeStamp()), 107 time_stamp_(model.GetTimeStamp()),
113 flags_(model.GetFlags()) { 108 flags_(model.GetFlags()) {
114 } 109 }
115 110
116 private: 111 private:
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 private: 315 private:
321 const OSExchangeData& data_; 316 const OSExchangeData& data_;
322 int source_operations_; 317 int source_operations_;
323 318
324 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent); 319 DISALLOW_EVIL_CONSTRUCTORS(DropTargetEvent);
325 }; 320 };
326 321
327 } // namespace views 322 } // namespace views
328 323
329 #endif // CHROME_VIEWS_EVENT_H_ 324 #endif // CHROME_VIEWS_EVENT_H_
OLDNEW
« no previous file with comments | « chrome/views/controls/tree/tree_view.cc ('k') | chrome/views/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698