| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/widget/native_widget_win.h" | 10 #include "ui/views/widget/native_widget_win.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual LRESULT OnReflectedMessage(UINT msg, | 58 virtual LRESULT OnReflectedMessage(UINT msg, |
| 59 WPARAM w_param, | 59 WPARAM w_param, |
| 60 LPARAM l_param) OVERRIDE; | 60 LPARAM l_param) OVERRIDE; |
| 61 virtual void OnVScroll(int scroll_type, | 61 virtual void OnVScroll(int scroll_type, |
| 62 short position, | 62 short position, |
| 63 HWND scrollbar) OVERRIDE; | 63 HWND scrollbar) OVERRIDE; |
| 64 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; | 64 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; |
| 65 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE; | 65 virtual void OnSize(UINT param, const WTL::CSize& size) OVERRIDE; |
| 66 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; | 66 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param) OVERRIDE; |
| 67 virtual void OnNCPaint(HRGN rgn) OVERRIDE; | 67 virtual void OnNCPaint(HRGN rgn) OVERRIDE; |
| 68 virtual LRESULT OnNCHitTest(const CPoint& point) OVERRIDE; |
| 68 | 69 |
| 69 // Backend for all scroll messages, the |message| parameter indicates which | 70 // Backend for all scroll messages, the |message| parameter indicates which |
| 70 // one it is. | 71 // one it is. |
| 71 void ScrollCommon(UINT message, int scroll_type, short position, | 72 void ScrollCommon(UINT message, int scroll_type, short position, |
| 72 HWND scrollbar); | 73 HWND scrollbar); |
| 73 bool ScrollZoom(int scroll_type); | 74 bool ScrollZoom(int scroll_type); |
| 74 | 75 |
| 75 internal::NativeTabContentsViewDelegate* delegate_; | 76 internal::NativeTabContentsViewDelegate* delegate_; |
| 76 | 77 |
| 77 // A drop target object that handles drags over this TabContents. | 78 // A drop target object that handles drags over this TabContents. |
| 78 scoped_refptr<WebDropTarget> drop_target_; | 79 scoped_refptr<WebDropTarget> drop_target_; |
| 79 | 80 |
| 80 // Used to handle the drag-and-drop. | 81 // Used to handle the drag-and-drop. |
| 81 scoped_refptr<TabContentsDragWin> drag_handler_; | 82 scoped_refptr<TabContentsDragWin> drag_handler_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); | 84 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 87 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |