| 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_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| 7 | 7 |
| 8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents_view.h" | 10 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Overrides from WidgetWin. | 57 // Overrides from WidgetWin. |
| 58 virtual void OnDestroy(); | 58 virtual void OnDestroy(); |
| 59 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); | 59 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); |
| 60 virtual void OnMouseLeave(); | 60 virtual void OnMouseLeave(); |
| 61 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param); | 61 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param); |
| 62 virtual void OnPaint(HDC junk_dc); | 62 virtual void OnPaint(HDC junk_dc); |
| 63 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param); | 63 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param); |
| 64 virtual void OnSetFocus(HWND window); | 64 virtual void OnSetFocus(HWND window); |
| 65 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar); | 65 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar); |
| 66 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); | 66 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 67 virtual void OnSize(UINT param, const CSize& size); | 67 virtual void OnSize(UINT param, const WTL::CSize& size); |
| 68 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param); | 68 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param); |
| 69 virtual void OnNCPaint(HRGN rgn); | 69 virtual void OnNCPaint(HRGN rgn); |
| 70 | 70 |
| 71 // Backend for all scroll messages, the |message| parameter indicates which | 71 // Backend for all scroll messages, the |message| parameter indicates which |
| 72 // one it is. | 72 // one it is. |
| 73 void ScrollCommon(UINT message, int scroll_type, short position, | 73 void ScrollCommon(UINT message, int scroll_type, short position, |
| 74 HWND scrollbar); | 74 HWND scrollbar); |
| 75 | 75 |
| 76 // Handles notifying the TabContents and other operations when the window was | 76 // Handles notifying the TabContents and other operations when the window was |
| 77 // shown or hidden. | 77 // shown or hidden. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 // Whether to ignore the next CHAR keyboard event. | 98 // Whether to ignore the next CHAR keyboard event. |
| 99 bool ignore_next_char_event_; | 99 bool ignore_next_char_event_; |
| 100 | 100 |
| 101 // The id used in the ViewStorage to store the last focused view. | 101 // The id used in the ViewStorage to store the last focused view. |
| 102 int last_focused_view_storage_id_; | 102 int last_focused_view_storage_id_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 104 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 107 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |