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

Side by Side Diff: views/widget/widget_win.h

Issue 6591120: Update MouseEvent (initial pass). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | views/widget/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 VIEWS_WIDGET_WIDGET_WIN_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_WIDGET_WIN_H_ 6 #define VIEWS_WIDGET_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // associated hWnd's (e.g. WidgetWin). 114 // associated hWnd's (e.g. WidgetWin).
115 int AddAccessibilityViewEvent(View* view); 115 int AddAccessibilityViewEvent(View* view);
116 116
117 // Clear a view that has recently been removed on a hierarchy change. 117 // Clear a view that has recently been removed on a hierarchy change.
118 void ClearAccessibilityViewEvent(View* view); 118 void ClearAccessibilityViewEvent(View* view);
119 119
120 // Overridden from Widget: 120 // Overridden from Widget:
121 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds) OVERRIDE; 121 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds) OVERRIDE;
122 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds) OVERRIDE; 122 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds) OVERRIDE;
123 virtual gfx::NativeView GetNativeView() const OVERRIDE; 123 virtual gfx::NativeView GetNativeView() const OVERRIDE;
124 virtual void GenerateMousePressedForView(View* view,
125 const gfx::Point& point) OVERRIDE;
126 virtual bool GetAccelerator(int cmd_id, 124 virtual bool GetAccelerator(int cmd_id,
127 ui::Accelerator* accelerator) OVERRIDE; 125 ui::Accelerator* accelerator) OVERRIDE;
128 virtual Window* GetWindow() OVERRIDE; 126 virtual Window* GetWindow() OVERRIDE;
129 virtual const Window* GetWindow() const OVERRIDE; 127 virtual const Window* GetWindow() const OVERRIDE;
130 virtual void ViewHierarchyChanged(bool is_add, View *parent, 128 virtual void ViewHierarchyChanged(bool is_add, View *parent,
131 View *child) OVERRIDE; 129 View *child) OVERRIDE;
132 130
133 BOOL IsWindow() const { 131 BOOL IsWindow() const {
134 return ::IsWindow(GetNativeView()); 132 return ::IsWindow(GetNativeView());
135 } 133 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Overridden from WindowImpl: 231 // Overridden from WindowImpl:
234 virtual HICON GetDefaultWindowIcon() const OVERRIDE; 232 virtual HICON GetDefaultWindowIcon() const OVERRIDE;
235 virtual LRESULT OnWndProc(UINT message, WPARAM w_param, 233 virtual LRESULT OnWndProc(UINT message, WPARAM w_param,
236 LPARAM l_param) OVERRIDE; 234 LPARAM l_param) OVERRIDE;
237 235
238 // Message Handlers ---------------------------------------------------------- 236 // Message Handlers ----------------------------------------------------------
239 237
240 BEGIN_MSG_MAP_EX(WidgetWin) 238 BEGIN_MSG_MAP_EX(WidgetWin)
241 // Range handlers must go first! 239 // Range handlers must go first!
242 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 240 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
243 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCMOUSEMOVE, OnMouseRange) 241 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnNCMouseRange)
244 242
245 // Reflected message handler 243 // Reflected message handler
246 MESSAGE_HANDLER_EX(kReflectedMessage, OnReflectedMessage) 244 MESSAGE_HANDLER_EX(kReflectedMessage, OnReflectedMessage)
247 245
248 // CustomFrameWindow hacks 246 // CustomFrameWindow hacks
249 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption) 247 MESSAGE_HANDLER_EX(WM_NCUAHDRAWCAPTION, OnNCUAHDrawCaption)
250 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame) 248 MESSAGE_HANDLER_EX(WM_NCUAHDRAWFRAME, OnNCUAHDrawFrame)
251 249
252 // Vista and newer 250 // Vista and newer
253 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged) 251 MESSAGE_HANDLER_EX(WM_DWMCOMPOSITIONCHANGED, OnDwmCompositionChanged)
254 252
255 // Non-atlcrack.h handlers 253 // Non-atlcrack.h handlers
256 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) 254 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject)
255
256 // Mouse events.
257 MESSAGE_HANDLER_EX(WM_MOUSEACTIVATE, OnMouseActivate)
258 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseLeave)
259 MESSAGE_HANDLER_EX(WM_MOUSEMOVE, OnMouseMove)
260 MESSAGE_HANDLER_EX(WM_MOUSEWHEEL, OnMouseWheel)
257 MESSAGE_HANDLER_EX(WM_NCMOUSELEAVE, OnNCMouseLeave) 261 MESSAGE_HANDLER_EX(WM_NCMOUSELEAVE, OnNCMouseLeave)
258 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseLeave) 262 MESSAGE_HANDLER_EX(WM_NCMOUSEMOVE, OnNCMouseMove)
259 MESSAGE_HANDLER_EX(WM_MOUSEWHEEL, OnMouseWheel)
260 263
261 // Key events. 264 // Key events.
262 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyDown) 265 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyDown)
263 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyUp) 266 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyUp)
264 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyDown); 267 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyDown);
265 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyUp); 268 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyUp);
266 269
267 // This list is in _ALPHABETICAL_ order! OR I WILL HURT YOU. 270 // This list is in _ALPHABETICAL_ order! OR I WILL HURT YOU.
268 MSG_WM_ACTIVATE(OnActivate) 271 MSG_WM_ACTIVATE(OnActivate)
269 MSG_WM_ACTIVATEAPP(OnActivateApp) 272 MSG_WM_ACTIVATEAPP(OnActivateApp)
270 MSG_WM_APPCOMMAND(OnAppCommand) 273 MSG_WM_APPCOMMAND(OnAppCommand)
271 MSG_WM_CANCELMODE(OnCancelMode) 274 MSG_WM_CANCELMODE(OnCancelMode)
272 MSG_WM_CAPTURECHANGED(OnCaptureChanged) 275 MSG_WM_CAPTURECHANGED(OnCaptureChanged)
273 MSG_WM_CLOSE(OnClose) 276 MSG_WM_CLOSE(OnClose)
274 MSG_WM_COMMAND(OnCommand) 277 MSG_WM_COMMAND(OnCommand)
275 MSG_WM_CREATE(OnCreate) 278 MSG_WM_CREATE(OnCreate)
276 MSG_WM_DESTROY(OnDestroy) 279 MSG_WM_DESTROY(OnDestroy)
277 MSG_WM_DISPLAYCHANGE(OnDisplayChange) 280 MSG_WM_DISPLAYCHANGE(OnDisplayChange)
278 MSG_WM_ERASEBKGND(OnEraseBkgnd) 281 MSG_WM_ERASEBKGND(OnEraseBkgnd)
279 MSG_WM_ENDSESSION(OnEndSession) 282 MSG_WM_ENDSESSION(OnEndSession)
280 MSG_WM_ENTERSIZEMOVE(OnEnterSizeMove) 283 MSG_WM_ENTERSIZEMOVE(OnEnterSizeMove)
281 MSG_WM_EXITMENULOOP(OnExitMenuLoop) 284 MSG_WM_EXITMENULOOP(OnExitMenuLoop)
282 MSG_WM_EXITSIZEMOVE(OnExitSizeMove) 285 MSG_WM_EXITSIZEMOVE(OnExitSizeMove)
283 MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo) 286 MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo)
284 MSG_WM_HSCROLL(OnHScroll) 287 MSG_WM_HSCROLL(OnHScroll)
285 MSG_WM_INITMENU(OnInitMenu) 288 MSG_WM_INITMENU(OnInitMenu)
286 MSG_WM_INITMENUPOPUP(OnInitMenuPopup) 289 MSG_WM_INITMENUPOPUP(OnInitMenuPopup)
287 MSG_WM_KILLFOCUS(OnKillFocus) 290 MSG_WM_KILLFOCUS(OnKillFocus)
288 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk)
289 MSG_WM_LBUTTONDOWN(OnLButtonDown)
290 MSG_WM_LBUTTONUP(OnLButtonUp)
291 MSG_WM_MBUTTONDOWN(OnMButtonDown)
292 MSG_WM_MBUTTONUP(OnMButtonUp)
293 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk)
294 MSG_WM_MOUSEACTIVATE(OnMouseActivate)
295 MSG_WM_MOUSEMOVE(OnMouseMove)
296 MSG_WM_MOVE(OnMove) 291 MSG_WM_MOVE(OnMove)
297 MSG_WM_MOVING(OnMoving) 292 MSG_WM_MOVING(OnMoving)
298 MSG_WM_NCACTIVATE(OnNCActivate) 293 MSG_WM_NCACTIVATE(OnNCActivate)
299 MSG_WM_NCCALCSIZE(OnNCCalcSize) 294 MSG_WM_NCCALCSIZE(OnNCCalcSize)
300 MSG_WM_NCHITTEST(OnNCHitTest) 295 MSG_WM_NCHITTEST(OnNCHitTest)
301 MSG_WM_NCMOUSEMOVE(OnNCMouseMove)
302 MSG_WM_NCLBUTTONDBLCLK(OnNCLButtonDblClk)
303 MSG_WM_NCLBUTTONDOWN(OnNCLButtonDown)
304 MSG_WM_NCLBUTTONUP(OnNCLButtonUp)
305 MSG_WM_NCMBUTTONDBLCLK(OnNCMButtonDblClk)
306 MSG_WM_NCMBUTTONDOWN(OnNCMButtonDown)
307 MSG_WM_NCMBUTTONUP(OnNCMButtonUp)
308 MSG_WM_NCPAINT(OnNCPaint) 296 MSG_WM_NCPAINT(OnNCPaint)
309 MSG_WM_NCRBUTTONDBLCLK(OnNCRButtonDblClk)
310 MSG_WM_NCRBUTTONDOWN(OnNCRButtonDown)
311 MSG_WM_NCRBUTTONUP(OnNCRButtonUp)
312 MSG_WM_NOTIFY(OnNotify) 297 MSG_WM_NOTIFY(OnNotify)
313 MSG_WM_PAINT(OnPaint) 298 MSG_WM_PAINT(OnPaint)
314 MSG_WM_POWERBROADCAST(OnPowerBroadcast) 299 MSG_WM_POWERBROADCAST(OnPowerBroadcast)
315 MSG_WM_RBUTTONDBLCLK(OnRButtonDblClk)
316 MSG_WM_RBUTTONDOWN(OnRButtonDown)
317 MSG_WM_RBUTTONUP(OnRButtonUp)
318 MSG_WM_SETFOCUS(OnSetFocus) 300 MSG_WM_SETFOCUS(OnSetFocus)
319 MSG_WM_SETICON(OnSetIcon) 301 MSG_WM_SETICON(OnSetIcon)
320 MSG_WM_SETTEXT(OnSetText) 302 MSG_WM_SETTEXT(OnSetText)
321 MSG_WM_SETTINGCHANGE(OnSettingChange) 303 MSG_WM_SETTINGCHANGE(OnSettingChange)
322 MSG_WM_SIZE(OnSize) 304 MSG_WM_SIZE(OnSize)
323 MSG_WM_SYSCOMMAND(OnSysCommand) 305 MSG_WM_SYSCOMMAND(OnSysCommand)
324 MSG_WM_THEMECHANGED(OnThemeChanged) 306 MSG_WM_THEMECHANGED(OnThemeChanged)
325 MSG_WM_VSCROLL(OnVScroll) 307 MSG_WM_VSCROLL(OnVScroll)
326 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) 308 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
327 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) 309 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged)
(...skipping 29 matching lines...) Expand all
357 virtual void OnExitMenuLoop(BOOL is_track_popup_menu); 339 virtual void OnExitMenuLoop(BOOL is_track_popup_menu);
358 virtual void OnExitSizeMove(); 340 virtual void OnExitSizeMove();
359 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); 341 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param);
360 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info); 342 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info);
361 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); 343 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar);
362 virtual void OnInitMenu(HMENU menu); 344 virtual void OnInitMenu(HMENU menu);
363 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); 345 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu);
364 virtual LRESULT OnKeyDown(UINT message, WPARAM w_param, LPARAM l_param); 346 virtual LRESULT OnKeyDown(UINT message, WPARAM w_param, LPARAM l_param);
365 virtual LRESULT OnKeyUp(UINT message, WPARAM w_param, LPARAM l_param); 347 virtual LRESULT OnKeyUp(UINT message, WPARAM w_param, LPARAM l_param);
366 virtual void OnKillFocus(HWND focused_window); 348 virtual void OnKillFocus(HWND focused_window);
367 virtual void OnLButtonDblClk(UINT flags, const CPoint& point); 349 virtual LRESULT OnMouseActivate(UINT message, WPARAM w_param, LPARAM l_param);
368 virtual void OnLButtonDown(UINT flags, const CPoint& point);
369 virtual void OnLButtonUp(UINT flags, const CPoint& point);
370 virtual void OnMButtonDblClk(UINT flags, const CPoint& point);
371 virtual void OnMButtonDown(UINT flags, const CPoint& point);
372 virtual void OnMButtonUp(UINT flags, const CPoint& point);
373 virtual LRESULT OnMouseActivate(HWND window, UINT hittest_code, UINT message);
374 virtual void OnMouseMove(UINT flags, const CPoint& point);
375 virtual LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param); 350 virtual LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param);
351 virtual LRESULT OnMouseMove(UINT message, WPARAM w_param, LPARAM l_param);
352 virtual LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param);
376 virtual LRESULT OnMouseWheel(UINT message, WPARAM w_param, LPARAM l_param); 353 virtual LRESULT OnMouseWheel(UINT message, WPARAM w_param, LPARAM l_param);
377 virtual void OnMove(const CPoint& point); 354 virtual void OnMove(const CPoint& point);
378 virtual void OnMoving(UINT param, LPRECT new_bounds); 355 virtual void OnMoving(UINT param, LPRECT new_bounds);
379 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param);
380 virtual LRESULT OnNCActivate(BOOL active); 356 virtual LRESULT OnNCActivate(BOOL active);
381 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param); 357 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param);
382 virtual LRESULT OnNCHitTest(const CPoint& pt); 358 virtual LRESULT OnNCHitTest(const CPoint& pt);
383 virtual void OnNCLButtonDblClk(UINT flags, const CPoint& point); 359 virtual LRESULT OnNCMouseLeave(UINT message, WPARAM w_param, LPARAM l_param);
384 virtual void OnNCLButtonDown(UINT flags, const CPoint& point); 360 virtual LRESULT OnNCMouseMove(UINT message, WPARAM w_param, LPARAM l_param);
385 virtual void OnNCLButtonUp(UINT flags, const CPoint& point); 361 virtual LRESULT OnNCMouseRange(UINT message, WPARAM w_param, LPARAM l_param);
386 virtual void OnNCMButtonDblClk(UINT flags, const CPoint& point);
387 virtual void OnNCMButtonDown(UINT flags, const CPoint& point);
388 virtual void OnNCMButtonUp(UINT flags, const CPoint& point);
389 virtual LRESULT OnNCMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param);
390 virtual LRESULT OnNCMouseMove(UINT flags, const CPoint& point);
391 virtual void OnNCPaint(HRGN rgn); 362 virtual void OnNCPaint(HRGN rgn);
392 virtual void OnNCRButtonDblClk(UINT flags, const CPoint& point);
393 virtual void OnNCRButtonDown(UINT flags, const CPoint& point);
394 virtual void OnNCRButtonUp(UINT flags, const CPoint& point);
395 virtual LRESULT OnNCUAHDrawCaption(UINT msg, 363 virtual LRESULT OnNCUAHDrawCaption(UINT msg,
396 WPARAM w_param, 364 WPARAM w_param,
397 LPARAM l_param); 365 LPARAM l_param);
398 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param); 366 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param);
399 virtual LRESULT OnNotify(int w_param, NMHDR* l_param); 367 virtual LRESULT OnNotify(int w_param, NMHDR* l_param);
400 virtual void OnPaint(HDC dc); 368 virtual void OnPaint(HDC dc);
401 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data); 369 virtual LRESULT OnPowerBroadcast(DWORD power_event, DWORD data);
402 virtual void OnRButtonDblClk(UINT flags, const CPoint& point);
403 virtual void OnRButtonDown(UINT flags, const CPoint& point);
404 virtual void OnRButtonUp(UINT flags, const CPoint& point);
405 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param); 370 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param);
406 virtual void OnSetFocus(HWND focused_window); 371 virtual void OnSetFocus(HWND focused_window);
407 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon); 372 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon);
408 virtual LRESULT OnSetText(const wchar_t* text); 373 virtual LRESULT OnSetText(const wchar_t* text);
409 virtual void OnSettingChange(UINT flags, const wchar_t* section); 374 virtual void OnSettingChange(UINT flags, const wchar_t* section);
410 virtual void OnSize(UINT param, const CSize& size); 375 virtual void OnSize(UINT param, const CSize& size);
411 virtual void OnSysCommand(UINT notification_code, CPoint click); 376 virtual void OnSysCommand(UINT notification_code, CPoint click);
412 virtual void OnThemeChanged(); 377 virtual void OnThemeChanged();
413 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar); 378 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar);
414 virtual void OnWindowPosChanging(WINDOWPOS* window_pos); 379 virtual void OnWindowPosChanging(WINDOWPOS* window_pos);
415 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); 380 virtual void OnWindowPosChanged(WINDOWPOS* window_pos);
416 381
417 // Deletes this window as it is destroyed, override to provide different 382 // Deletes this window as it is destroyed, override to provide different
418 // behavior. 383 // behavior.
419 virtual void OnFinalMessage(HWND window); 384 virtual void OnFinalMessage(HWND window);
420 385
421 // Start tracking all mouse events so that this window gets sent mouse leave 386 // Start tracking all mouse events so that this window gets sent mouse leave
422 // messages too. 387 // messages too.
423 void TrackMouseEvents(DWORD mouse_tracking_flags); 388 void TrackMouseEvents(DWORD mouse_tracking_flags);
424 389
425 // Actually handle mouse events. These functions are called by subclasses who 390 // Actually handle mouse events. These functions are called by subclasses who
426 // override the message handlers above to do the actual real work of handling 391 // override the message handlers above to do the actual real work of handling
427 // the event in the View system. 392 // the event in the View system.
428 bool ProcessMousePressed(const CPoint& point, 393 bool ProcessMousePressed(UINT message, WPARAM w_param, LPARAM l_param);
429 UINT flags, 394 bool ProcessMouseReleased(UINT message, WPARAM w_param, LPARAM l_param);
430 bool dbl_click, 395 bool ProcessMouseMoved(UINT message, WPARAM w_param, LPARAM l_param);
431 bool non_client);
432 void ProcessMouseDragged(const CPoint& point, UINT flags);
433 void ProcessMouseReleased(const CPoint& point, UINT flags);
434 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient);
435 void ProcessMouseExited(); 396 void ProcessMouseExited();
436 397
437 // Called when a MSAA screen reader client is detected. 398 // Called when a MSAA screen reader client is detected.
438 virtual void OnScreenReaderDetected(); 399 virtual void OnScreenReaderDetected();
439 400
440 // Returns whether capture should be released on mouse release. The default 401 // Returns whether capture should be released on mouse release. The default
441 // is true. 402 // is true.
442 virtual bool ReleaseCaptureOnMouseReleased(); 403 virtual bool ReleaseCaptureOnMouseReleased();
443 404
444 // The TooltipManager. 405 // The TooltipManager.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // store if necessary. 493 // store if necessary.
533 bool can_update_layered_window_; 494 bool can_update_layered_window_;
534 495
535 // The following are used to detect duplicate mouse move events and not 496 // The following are used to detect duplicate mouse move events and not
536 // deliver them. Displaying a window may result in the system generating 497 // deliver them. Displaying a window may result in the system generating
537 // duplicate move events even though the mouse hasn't moved. 498 // duplicate move events even though the mouse hasn't moved.
538 499
539 // If true, the last event was a mouse move event. 500 // If true, the last event was a mouse move event.
540 bool last_mouse_event_was_move_; 501 bool last_mouse_event_was_move_;
541 502
542 // Coordinates of the last mouse move event, in screen coordinates. 503 // Coordinates of the last mouse move event.
543 int last_mouse_move_x_; 504 int last_mouse_move_x_;
544 int last_mouse_move_y_; 505 int last_mouse_move_y_;
545 506
546 // Whether the focus should be restored next time we get enabled. Needed to 507 // Whether the focus should be restored next time we get enabled. Needed to
547 // restore focus correctly when Windows modal dialogs are displayed. 508 // restore focus correctly when Windows modal dialogs are displayed.
548 bool restore_focus_when_enabled_; 509 bool restore_focus_when_enabled_;
549 510
550 // Instance of accessibility information and handling for MSAA root 511 // Instance of accessibility information and handling for MSAA root
551 base::win::ScopedComPtr<IAccessible> accessibility_root_; 512 base::win::ScopedComPtr<IAccessible> accessibility_root_;
552 513
(...skipping 16 matching lines...) Expand all
569 gfx::NativeCursor previous_cursor_; 530 gfx::NativeCursor previous_cursor_;
570 531
571 ViewProps props_; 532 ViewProps props_;
572 533
573 DISALLOW_COPY_AND_ASSIGN(WidgetWin); 534 DISALLOW_COPY_AND_ASSIGN(WidgetWin);
574 }; 535 };
575 536
576 } // namespace views 537 } // namespace views
577 538
578 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ 539 #endif // VIEWS_WIDGET_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698