| 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_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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual void Focus() OVERRIDE; | 63 virtual void Focus() OVERRIDE; |
| 64 virtual void SetInitialFocus() OVERRIDE; | 64 virtual void SetInitialFocus() OVERRIDE; |
| 65 virtual void StoreFocus() OVERRIDE; | 65 virtual void StoreFocus() OVERRIDE; |
| 66 virtual void RestoreFocus() OVERRIDE; | 66 virtual void RestoreFocus() OVERRIDE; |
| 67 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; | 67 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; |
| 68 virtual bool IsDoingDrag() const OVERRIDE; | 68 virtual bool IsDoingDrag() const OVERRIDE; |
| 69 virtual void CancelDragAndCloseTab() OVERRIDE; | 69 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 70 virtual bool IsEventTracking() const; | 70 virtual bool IsEventTracking() const; |
| 71 virtual void CloseTabAfterEventTracking(); | 71 virtual void CloseTabAfterEventTracking(); |
| 72 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 72 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 73 |
| 74 // Implementation of RenderViewHostDelegate::View. |
| 73 virtual void CreateNewWindow( | 75 virtual void CreateNewWindow( |
| 74 int route_id, | 76 int route_id, |
| 75 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 77 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; |
| 76 virtual void CreateNewWidget(int route_id, | 78 virtual void CreateNewWidget(int route_id, |
| 77 WebKit::WebPopupType popup_type) OVERRIDE; | 79 WebKit::WebPopupType popup_type) OVERRIDE; |
| 78 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; | 80 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; |
| 79 virtual void ShowCreatedWindow(int route_id, | 81 virtual void ShowCreatedWindow(int route_id, |
| 80 WindowOpenDisposition disposition, | 82 WindowOpenDisposition disposition, |
| 81 const gfx::Rect& initial_pos, | 83 const gfx::Rect& initial_pos, |
| 82 bool user_gesture) OVERRIDE; | 84 bool user_gesture) OVERRIDE; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 base::OneShotTimer<TabContentsViewViews> close_tab_timer_; | 162 base::OneShotTimer<TabContentsViewViews> close_tab_timer_; |
| 161 | 163 |
| 162 // The FocusManager associated with this tab. Stored as it is not directly | 164 // The FocusManager associated with this tab. Stored as it is not directly |
| 163 // accessible when un-parented. | 165 // accessible when un-parented. |
| 164 views::FocusManager* focus_manager_; | 166 views::FocusManager* focus_manager_; |
| 165 | 167 |
| 166 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); | 168 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ | 171 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ |
| OLD | NEW |