| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 SetMsgHandled(FALSE); | 464 SetMsgHandled(FALSE); |
| 464 return 0; | 465 return 0; |
| 465 } | 466 } |
| 466 virtual void OnSettingChange(UINT flags, const wchar_t* section); | 467 virtual void OnSettingChange(UINT flags, const wchar_t* section); |
| 467 virtual void OnSize(UINT param, const CSize& size); | 468 virtual void OnSize(UINT param, const CSize& size); |
| 468 virtual void OnSysCommand(UINT notification_code, CPoint click) { } | 469 virtual void OnSysCommand(UINT notification_code, CPoint click) { } |
| 469 virtual void OnThemeChanged(); | 470 virtual void OnThemeChanged(); |
| 470 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar) { | 471 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar) { |
| 471 SetMsgHandled(FALSE); | 472 SetMsgHandled(FALSE); |
| 472 } | 473 } |
| 474 virtual void OnWindowPosChanging(WINDOWPOS* window_pos) { |
| 475 SetMsgHandled(FALSE); |
| 476 } |
| 473 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) { | 477 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) { |
| 474 SetMsgHandled(FALSE); | 478 SetMsgHandled(FALSE); |
| 475 } | 479 } |
| 476 | 480 |
| 477 // deletes this window as it is destroyed, override to provide different | 481 // deletes this window as it is destroyed, override to provide different |
| 478 // behavior. | 482 // behavior. |
| 479 virtual void OnFinalMessage(HWND window); | 483 virtual void OnFinalMessage(HWND window); |
| 480 | 484 |
| 481 // Start tracking all mouse events so that this window gets sent mouse leave | 485 // Start tracking all mouse events so that this window gets sent mouse leave |
| 482 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE | 486 // messages too. |is_nonclient| is true when we should track WM_NCMOUSELEAVE |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 CComPtr<IAccessible> accessibility_root_; | 621 CComPtr<IAccessible> accessibility_root_; |
| 618 | 622 |
| 619 // Our hwnd. | 623 // Our hwnd. |
| 620 HWND hwnd_; | 624 HWND hwnd_; |
| 621 }; | 625 }; |
| 622 | 626 |
| 623 } // namespace views | 627 } // namespace views |
| 624 | 628 |
| 625 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ | 629 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ |
| 626 | 630 |
| OLD | NEW |