OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 virtual void CreateNewWindow( | 180 virtual void CreateNewWindow( |
181 int route_id, | 181 int route_id, |
182 WindowContainerType window_container_type, | 182 WindowContainerType window_container_type, |
183 const string16& frame_name); | 183 const string16& frame_name); |
184 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); | 184 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); |
185 virtual void ShowCreatedWindow(int route_id, | 185 virtual void ShowCreatedWindow(int route_id, |
186 WindowOpenDisposition disposition, | 186 WindowOpenDisposition disposition, |
187 const gfx::Rect& initial_pos, | 187 const gfx::Rect& initial_pos, |
188 bool user_gesture); | 188 bool user_gesture); |
189 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); | 189 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); |
| 190 virtual void Activate(); |
| 191 virtual void Deactivate(); |
190 | 192 |
191 // The TabContents whose contents we display. | 193 // The TabContents whose contents we display. |
192 TabContents* tab_contents_; | 194 TabContents* tab_contents_; |
193 | 195 |
194 // Tracks created TabContents objects that have not been shown yet. They are | 196 // Tracks created TabContents objects that have not been shown yet. They are |
195 // identified by the route ID passed to CreateNewWindow. | 197 // identified by the route ID passed to CreateNewWindow. |
196 typedef std::map<int, TabContents*> PendingContents; | 198 typedef std::map<int, TabContents*> PendingContents; |
197 PendingContents pending_contents_; | 199 PendingContents pending_contents_; |
198 | 200 |
199 // These maps hold on to the widgets that we created on behalf of the | 201 // These maps hold on to the widgets that we created on behalf of the |
200 // renderer that haven't shown yet. | 202 // renderer that haven't shown yet. |
201 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; | 203 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; |
202 PendingWidgetViews pending_widget_views_; | 204 PendingWidgetViews pending_widget_views_; |
203 | 205 |
204 DISALLOW_COPY_AND_ASSIGN(TabContentsView); | 206 DISALLOW_COPY_AND_ASSIGN(TabContentsView); |
205 }; | 207 }; |
206 | 208 |
207 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ | 209 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ |
OLD | NEW |