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

Side by Side Diff: ui/views/widget/native_widget_win.h

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 9 years, 8 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/browser/chromeos/login/message_bubble.cc ('k') | ui/views/widget/native_widget_win.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIDGET_NATIVE_WIDGET_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 7
8 #include "ui/base/win/window_impl.h" 8 #include "ui/base/win/window_impl.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 // Start tracking all mouse events so that this window gets sent mouse leave 231 // Start tracking all mouse events so that this window gets sent mouse leave
232 // messages too. 232 // messages too.
233 void TrackMouseEvents(DWORD mouse_tracking_flags); 233 void TrackMouseEvents(DWORD mouse_tracking_flags);
234 234
235 bool ProcessMouseRange(UINT message, WPARAM w_param, LPARAM l_param, 235 bool ProcessMouseRange(UINT message, WPARAM w_param, LPARAM l_param,
236 bool non_client); 236 bool non_client);
237 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient); 237 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient);
238 void ProcessMouseExited(); 238 void ProcessMouseExited();
239 239
240 // Fills out a MSG struct with the supplied values.
241 void MakeMSG(MSG* msg, UINT message, WPARAM w_param, LPARAM l_param,
242 DWORD time = 0, LONG x = 0, LONG y = 0) const;
243
244 void CloseNow(); 240 void CloseNow();
245 241
246 bool IsLayeredWindow() const; 242 bool IsLayeredWindow() const;
247 243
248 // A listener implementation that handles events received here. 244 // A listener implementation that handles events received here.
249 NativeWidgetListener* listener_; 245 NativeWidgetListener* listener_;
250 246
251 // The flags currently being used with TrackMouseEvent to track mouse 247 // The flags currently being used with TrackMouseEvent to track mouse
252 // messages. 0 if there is no active tracking. The value of this member is 248 // messages. 0 if there is no active tracking. The value of this member is
253 // used when tracking is canceled. 249 // used when tracking is canceled.
(...skipping 11 matching lines...) Expand all
265 ViewProps props_; 261 ViewProps props_;
266 262
267 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 263 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
268 }; 264 };
269 265
270 } // namespace internal 266 } // namespace internal
271 } // namespace ui 267 } // namespace ui
272 268
273 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 269 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
274 270
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/message_bubble.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698