| OLD | NEW |
| 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_WIDGET_WIDGET_WIN_H_ | 5 #ifndef CHROME_VIEWS_WIDGET_WIDGET_WIN_H_ |
| 6 #define CHROME_VIEWS_WIDGET_WIDGET_WIN_H_ | 6 #define CHROME_VIEWS_WIDGET_WIDGET_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcrack.h> | 9 #include <atlcrack.h> |
| 10 | 10 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 virtual void OnFinalMessage(HWND window); | 469 virtual void OnFinalMessage(HWND window); |
| 470 | 470 |
| 471 // Start tracking all mouse events so that this window gets sent mouse leave | 471 // Start tracking all mouse events so that this window gets sent mouse leave |
| 472 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE | 472 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE |
| 473 // messages instead of WM_MOUSELEAVE ones. | 473 // messages instead of WM_MOUSELEAVE ones. |
| 474 void TrackMouseEvents(DWORD mouse_tracking_flags); | 474 void TrackMouseEvents(DWORD mouse_tracking_flags); |
| 475 | 475 |
| 476 // Actually handle mouse events. These functions are called by subclasses who | 476 // Actually handle mouse events. These functions are called by subclasses who |
| 477 // override the message handlers above to do the actual real work of handling | 477 // override the message handlers above to do the actual real work of handling |
| 478 // the event in the View system. | 478 // the event in the View system. |
| 479 bool ProcessMousePressed(const CPoint& point, UINT flags, bool dbl_click); | 479 bool ProcessMousePressed(const CPoint& point, |
| 480 UINT flags, |
| 481 bool dbl_click, |
| 482 bool non_client); |
| 480 void ProcessMouseDragged(const CPoint& point, UINT flags); | 483 void ProcessMouseDragged(const CPoint& point, UINT flags); |
| 481 void ProcessMouseReleased(const CPoint& point, UINT flags); | 484 void ProcessMouseReleased(const CPoint& point, UINT flags); |
| 482 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient); | 485 void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient); |
| 483 void ProcessMouseExited(); | 486 void ProcessMouseExited(); |
| 484 | 487 |
| 485 // Makes sure the window still fits on screen after a settings change message | 488 // Makes sure the window still fits on screen after a settings change message |
| 486 // from the OS, e.g. a screen resolution change. | 489 // from the OS, e.g. a screen resolution change. |
| 487 virtual void AdjustWindowToFitScreenSize(); | 490 virtual void AdjustWindowToFitScreenSize(); |
| 488 | 491 |
| 489 // Handles re-laying out content in response to a window size change. | 492 // Handles re-laying out content in response to a window size change. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // Instance of accessibility information and handling for MSAA root | 609 // Instance of accessibility information and handling for MSAA root |
| 607 CComPtr<IAccessible> accessibility_root_; | 610 CComPtr<IAccessible> accessibility_root_; |
| 608 | 611 |
| 609 // Our hwnd. | 612 // Our hwnd. |
| 610 HWND hwnd_; | 613 HWND hwnd_; |
| 611 }; | 614 }; |
| 612 | 615 |
| 613 } // namespace views | 616 } // namespace views |
| 614 | 617 |
| 615 #endif // #ifndef CHROME_VIEWS_WIDGET_WIDGET_WIN_H_ | 618 #endif // #ifndef CHROME_VIEWS_WIDGET_WIDGET_WIN_H_ |
| OLD | NEW |