OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |