OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" | 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" |
10 #include "views/widget/widget_win.h" | 10 #include "views/widget/widget_win.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual LRESULT OnReflectedMessage(UINT msg, | 54 virtual LRESULT OnReflectedMessage(UINT msg, |
55 WPARAM w_param, | 55 WPARAM w_param, |
56 LPARAM l_param) OVERRIDE; | 56 LPARAM l_param) OVERRIDE; |
57 virtual void OnVScroll(int scroll_type, | 57 virtual void OnVScroll(int scroll_type, |
58 short position, | 58 short position, |
59 HWND scrollbar) OVERRIDE; | 59 HWND scrollbar) OVERRIDE; |
60 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; | 60 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; |
61 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE; | 61 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE; |
62 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; | 62 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; |
63 virtual void OnNCPaint(HRGN rgn) OVERRIDE; | 63 virtual void OnNCPaint(HRGN rgn) OVERRIDE; |
64 virtual views::FocusManager* GetFocusManager() OVERRIDE; | |
65 | 64 |
66 // Backend for all scroll messages, the |message| parameter indicates which | 65 // Backend for all scroll messages, the |message| parameter indicates which |
67 // one it is. | 66 // one it is. |
68 void ScrollCommon(UINT message, int scroll_type, short position, | 67 void ScrollCommon(UINT message, int scroll_type, short position, |
69 HWND scrollbar); | 68 HWND scrollbar); |
70 bool ScrollZoom(int scroll_type); | 69 bool ScrollZoom(int scroll_type); |
71 | 70 |
72 internal::NativeTabContentsViewDelegate* delegate_; | 71 internal::NativeTabContentsViewDelegate* delegate_; |
73 | 72 |
74 // A drop target object that handles drags over this TabContents. | 73 // A drop target object that handles drags over this TabContents. |
75 scoped_refptr<WebDropTarget> drop_target_; | 74 scoped_refptr<WebDropTarget> drop_target_; |
76 | 75 |
77 // Used to handle the drag-and-drop. | 76 // Used to handle the drag-and-drop. |
78 scoped_refptr<TabContentsDragWin> drag_handler_; | 77 scoped_refptr<TabContentsDragWin> drag_handler_; |
79 | 78 |
80 // The FocusManager associated with this tab. Stored as it is not directly | |
81 // accessible when un-parented. | |
82 views::FocusManager* focus_manager_; | |
83 | |
84 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); | 79 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); |
85 }; | 80 }; |
86 | 81 |
87 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 82 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |