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_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void SetPageTitle(const std::wstring& title); | 50 virtual void SetPageTitle(const std::wstring& title); |
51 virtual void OnTabCrashed(base::TerminationStatus status, | 51 virtual void OnTabCrashed(base::TerminationStatus status, |
52 int error_code); | 52 int error_code); |
53 virtual void SizeContents(const gfx::Size& size); | 53 virtual void SizeContents(const gfx::Size& size); |
54 virtual void Focus(); | 54 virtual void Focus(); |
55 virtual void SetInitialFocus(); | 55 virtual void SetInitialFocus(); |
56 virtual void StoreFocus(); | 56 virtual void StoreFocus(); |
57 virtual void RestoreFocus(); | 57 virtual void RestoreFocus(); |
58 virtual bool IsDoingDrag() const; | 58 virtual bool IsDoingDrag() const; |
59 virtual void CancelDragAndCloseTab(); | 59 virtual void CancelDragAndCloseTab(); |
| 60 virtual void GetViewBounds(gfx::Rect* out) const; |
60 | 61 |
61 // Backend implementation of RenderViewHostDelegate::View. | 62 // Backend implementation of RenderViewHostDelegate::View. |
62 virtual void ShowContextMenu(const ContextMenuParams& params); | 63 virtual void ShowContextMenu(const ContextMenuParams& params); |
63 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 64 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
64 int item_height, | 65 int item_height, |
65 double item_font_size, | 66 double item_font_size, |
66 int selected_item, | 67 int selected_item, |
67 const std::vector<WebMenuItem>& items, | 68 const std::vector<WebMenuItem>& items, |
68 bool right_aligned); | 69 bool right_aligned); |
69 virtual void StartDragging(const WebDropData& drop_data, | 70 virtual void StartDragging(const WebDropData& drop_data, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Used to close the tab after the stack has unwound. | 145 // Used to close the tab after the stack has unwound. |
145 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; | 146 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; |
146 | 147 |
147 // Used to handle the drag-and-drop. | 148 // Used to handle the drag-and-drop. |
148 scoped_refptr<TabContentsDragWin> drag_handler_; | 149 scoped_refptr<TabContentsDragWin> drag_handler_; |
149 | 150 |
150 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); | 151 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); |
151 }; | 152 }; |
152 | 153 |
153 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ | 154 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |