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_CUSTOM_FRAME_WINDOW_H__ | 5 #ifndef CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ |
6 #define CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ | 6 #define CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ |
7 | 7 |
8 #include "chrome/common/gfx/chrome_canvas.h" | 8 #include "chrome/common/gfx/chrome_canvas.h" |
9 #include "chrome/views/window.h" | 9 #include "chrome/views/window.h" |
10 #include "chrome/views/window_delegate.h" | 10 #include "chrome/views/window_delegate.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void DisableInactiveRendering(bool disable); | 48 virtual void DisableInactiveRendering(bool disable); |
49 | 49 |
50 // Overridden from WidgetWin: | 50 // Overridden from WidgetWin: |
51 virtual void OnInitMenu(HMENU menu); | 51 virtual void OnInitMenu(HMENU menu); |
52 virtual void OnMouseLeave(); | 52 virtual void OnMouseLeave(); |
53 virtual LRESULT OnNCActivate(BOOL active); | 53 virtual LRESULT OnNCActivate(BOOL active); |
54 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | 54 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); |
55 virtual LRESULT OnNCHitTest(const CPoint& point); | 55 virtual LRESULT OnNCHitTest(const CPoint& point); |
56 virtual void OnNCPaint(HRGN rgn); | 56 virtual void OnNCPaint(HRGN rgn); |
57 virtual void OnNCLButtonDown(UINT ht_component, const CPoint& point); | 57 virtual void OnNCLButtonDown(UINT ht_component, const CPoint& point); |
58 virtual void OnNCMButtonDown(UINT ht_component, const CPoint& point); | |
59 virtual LRESULT OnNCUAHDrawCaption(UINT msg, WPARAM w_param, LPARAM l_param); | 58 virtual LRESULT OnNCUAHDrawCaption(UINT msg, WPARAM w_param, LPARAM l_param); |
60 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param); | 59 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param); |
61 virtual LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT message); | 60 virtual LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT message); |
62 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 61 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
63 virtual LRESULT OnSetText(const wchar_t* text); | 62 virtual LRESULT OnSetText(const wchar_t* text); |
64 virtual void OnSize(UINT param, const CSize& size); | 63 virtual void OnSize(UINT param, const CSize& size); |
65 virtual void OnSysCommand(UINT notification_code, CPoint click); | 64 virtual void OnSysCommand(UINT notification_code, CPoint click); |
66 | 65 |
67 private: | 66 private: |
68 class ScopedRedrawLock; | 67 class ScopedRedrawLock; |
(...skipping 29 matching lines...) Expand all Loading... |
98 }; | 97 }; |
99 static HCURSOR resize_cursors_[6]; | 98 static HCURSOR resize_cursors_[6]; |
100 | 99 |
101 DISALLOW_EVIL_CONSTRUCTORS(CustomFrameWindow); | 100 DISALLOW_EVIL_CONSTRUCTORS(CustomFrameWindow); |
102 }; | 101 }; |
103 | 102 |
104 } // namespace views | 103 } // namespace views |
105 | 104 |
106 #endif // CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ | 105 #endif // CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ |
107 | 106 |
OLD | NEW |