| 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_TAB_CONTENTS_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/timer.h" | 11 #include "base/timer.h" |
| 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" | 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate
.h" |
| 13 #include "content/browser/tab_contents/tab_contents_view_helper.h" | 13 #include "content/browser/web_contents/web_contents_view_helper.h" |
| 14 #include "content/public/browser/web_contents_view.h" | 14 #include "content/public/browser/web_contents_view.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 class NativeTabContentsView; | 17 class NativeTabContentsView; |
| 18 class RenderViewContextMenuViews; | 18 class RenderViewContextMenuViews; |
| 19 class SkBitmap; | 19 class SkBitmap; |
| 20 struct WebDropData; | 20 struct WebDropData; |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class Point; | 22 class Point; |
| 23 class Size; | 23 class Size; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void CloseTab(); | 121 void CloseTab(); |
| 122 | 122 |
| 123 views::Widget* GetSadTab() const; | 123 views::Widget* GetSadTab() const; |
| 124 | 124 |
| 125 // --------------------------------------------------------------------------- | 125 // --------------------------------------------------------------------------- |
| 126 | 126 |
| 127 // The WebContents whose contents we display. | 127 // The WebContents whose contents we display. |
| 128 content::WebContents* web_contents_; | 128 content::WebContents* web_contents_; |
| 129 | 129 |
| 130 // Common implementations of some WebContentsView methods. | 130 // Common implementations of some WebContentsView methods. |
| 131 TabContentsViewHelper tab_contents_view_helper_; | 131 WebContentsViewHelper web_contents_view_helper_; |
| 132 | 132 |
| 133 NativeTabContentsView* native_tab_contents_view_; | 133 NativeTabContentsView* native_tab_contents_view_; |
| 134 | 134 |
| 135 // The id used in the ViewStorage to store the last focused view. | 135 // The id used in the ViewStorage to store the last focused view. |
| 136 int last_focused_view_storage_id_; | 136 int last_focused_view_storage_id_; |
| 137 | 137 |
| 138 // The context menu. Callbacks are asynchronous so we need to keep it around. | 138 // The context menu. Callbacks are asynchronous so we need to keep it around. |
| 139 scoped_ptr<RenderViewContextMenuViews> context_menu_; | 139 scoped_ptr<RenderViewContextMenuViews> context_menu_; |
| 140 | 140 |
| 141 // Set to true if we want to close the tab after the system drag operation | 141 // Set to true if we want to close the tab after the system drag operation |
| 142 // has finished. | 142 // has finished. |
| 143 bool close_tab_after_drag_ends_; | 143 bool close_tab_after_drag_ends_; |
| 144 | 144 |
| 145 // Used to close the tab after the stack has unwound. | 145 // Used to close the tab after the stack has unwound. |
| 146 base::OneShotTimer<TabContentsViewViews> close_tab_timer_; | 146 base::OneShotTimer<TabContentsViewViews> close_tab_timer_; |
| 147 | 147 |
| 148 // Chrome specific functionality (to make it easier for this class to | 148 // Chrome specific functionality (to make it easier for this class to |
| 149 // eventually move to content). | 149 // eventually move to content). |
| 150 scoped_ptr<content::WebContentsViewDelegate> delegate_; | 150 scoped_ptr<content::WebContentsViewDelegate> delegate_; |
| 151 | 151 |
| 152 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); | 152 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 155 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
| OLD | NEW |