| 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_WIN_H_ | 5 #ifndef CHROME_VIEWS_WIDGET_WIN_H_ |
| 6 #define CHROME_VIEWS_WIDGET_WIN_H_ | 6 #define CHROME_VIEWS_WIDGET_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcrack.h> | 9 #include <atlcrack.h> |
| 10 | 10 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 MSG_WM_RBUTTONUP(OnRButtonUp) | 237 MSG_WM_RBUTTONUP(OnRButtonUp) |
| 238 MSG_WM_SETCURSOR(OnSetCursor) | 238 MSG_WM_SETCURSOR(OnSetCursor) |
| 239 MSG_WM_SETFOCUS(OnSetFocus) | 239 MSG_WM_SETFOCUS(OnSetFocus) |
| 240 MSG_WM_SETICON(OnSetIcon) | 240 MSG_WM_SETICON(OnSetIcon) |
| 241 MSG_WM_SETTEXT(OnSetText) | 241 MSG_WM_SETTEXT(OnSetText) |
| 242 MSG_WM_SETTINGCHANGE(OnSettingChange) | 242 MSG_WM_SETTINGCHANGE(OnSettingChange) |
| 243 MSG_WM_SIZE(OnSize) | 243 MSG_WM_SIZE(OnSize) |
| 244 MSG_WM_SYSCOMMAND(OnSysCommand) | 244 MSG_WM_SYSCOMMAND(OnSysCommand) |
| 245 MSG_WM_THEMECHANGED(OnThemeChanged) | 245 MSG_WM_THEMECHANGED(OnThemeChanged) |
| 246 MSG_WM_VSCROLL(OnVScroll) | 246 MSG_WM_VSCROLL(OnVScroll) |
| 247 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) |
| 247 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) | 248 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) |
| 248 END_MSG_MAP() | 249 END_MSG_MAP() |
| 249 | 250 |
| 250 // Overridden from Widget: | 251 // Overridden from Widget: |
| 251 virtual void GetBounds(gfx::Rect* out, bool including_frame) const; | 252 virtual void GetBounds(gfx::Rect* out, bool including_frame) const; |
| 252 virtual void MoveToFront(bool should_activate); | 253 virtual void MoveToFront(bool should_activate); |
| 253 virtual HWND GetHWND() const; | 254 virtual HWND GetHWND() const; |
| 254 virtual void PaintNow(const gfx::Rect& update_rect); | 255 virtual void PaintNow(const gfx::Rect& update_rect); |
| 255 virtual RootView* GetRootView(); | 256 virtual RootView* GetRootView(); |
| 256 virtual bool IsVisible(); | 257 virtual bool IsVisible(); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 SetMsgHandled(FALSE); | 470 SetMsgHandled(FALSE); |
| 470 return 0; | 471 return 0; |
| 471 } | 472 } |
| 472 virtual void OnSettingChange(UINT flags, const wchar_t* section); | 473 virtual void OnSettingChange(UINT flags, const wchar_t* section); |
| 473 virtual void OnSize(UINT param, const CSize& size); | 474 virtual void OnSize(UINT param, const CSize& size); |
| 474 virtual void OnSysCommand(UINT notification_code, CPoint click) { } | 475 virtual void OnSysCommand(UINT notification_code, CPoint click) { } |
| 475 virtual void OnThemeChanged(); | 476 virtual void OnThemeChanged(); |
| 476 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar) { | 477 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar) { |
| 477 SetMsgHandled(FALSE); | 478 SetMsgHandled(FALSE); |
| 478 } | 479 } |
| 480 virtual void OnWindowPosChanging(WINDOWPOS* window_pos) { |
| 481 SetMsgHandled(FALSE); |
| 482 } |
| 479 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) { | 483 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) { |
| 480 SetMsgHandled(FALSE); | 484 SetMsgHandled(FALSE); |
| 481 } | 485 } |
| 482 | 486 |
| 483 // deletes this window as it is destroyed, override to provide different | 487 // deletes this window as it is destroyed, override to provide different |
| 484 // behavior. | 488 // behavior. |
| 485 virtual void OnFinalMessage(HWND window); | 489 virtual void OnFinalMessage(HWND window); |
| 486 | 490 |
| 487 // Start tracking all mouse events so that this window gets sent mouse leave | 491 // Start tracking all mouse events so that this window gets sent mouse leave |
| 488 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE | 492 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 // Instance of accessibility information and handling for MSAA root | 626 // Instance of accessibility information and handling for MSAA root |
| 623 CComPtr<IAccessible> accessibility_root_; | 627 CComPtr<IAccessible> accessibility_root_; |
| 624 | 628 |
| 625 // Our hwnd. | 629 // Our hwnd. |
| 626 HWND hwnd_; | 630 HWND hwnd_; |
| 627 }; | 631 }; |
| 628 | 632 |
| 629 } // namespace views | 633 } // namespace views |
| 630 | 634 |
| 631 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ | 635 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ |
| OLD | NEW |