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_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // NOTE: This does not perform any EqualsDelegate() checks like AddInfoBar(). | 221 // NOTE: This does not perform any EqualsDelegate() checks like AddInfoBar(). |
222 void ReplaceInfoBar(InfoBarDelegate* old_delegate, | 222 void ReplaceInfoBar(InfoBarDelegate* old_delegate, |
223 InfoBarDelegate* new_delegate); | 223 InfoBarDelegate* new_delegate); |
224 | 224 |
225 // Enumeration and access functions. | 225 // Enumeration and access functions. |
226 size_t infobar_count() const { return infobars_.size(); } | 226 size_t infobar_count() const { return infobars_.size(); } |
227 // WARNING: This does not sanity-check |index|! | 227 // WARNING: This does not sanity-check |index|! |
228 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); | 228 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); |
229 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } | 229 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } |
230 | 230 |
| 231 // Stop this tab rendering in fullscreen mode. |
| 232 void ExitFullscreenMode(); |
| 233 |
231 private: | 234 private: |
232 // Internal helpers ---------------------------------------------------------- | 235 // Internal helpers ---------------------------------------------------------- |
233 | 236 |
234 // Message handlers. | 237 // Message handlers. |
235 void OnJSOutOfMemory(); | 238 void OnJSOutOfMemory(); |
236 void OnRegisterProtocolHandler(const std::string& protocol, | 239 void OnRegisterProtocolHandler(const std::string& protocol, |
237 const GURL& url, | 240 const GURL& url, |
238 const string16& title); | 241 const string16& title); |
239 void OnSnapshot(const SkBitmap& bitmap); | 242 void OnSnapshot(const SkBitmap& bitmap); |
240 void OnPDFHasUnsupportedFeature(); | 243 void OnPDFHasUnsupportedFeature(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 337 |
335 // The supporting objects need to outlive the TabContents dtor (as they may | 338 // The supporting objects need to outlive the TabContents dtor (as they may |
336 // be called upon during its execution). As a result, this must come last | 339 // be called upon during its execution). As a result, this must come last |
337 // in the list. | 340 // in the list. |
338 scoped_ptr<TabContents> tab_contents_; | 341 scoped_ptr<TabContents> tab_contents_; |
339 | 342 |
340 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 343 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
341 }; | 344 }; |
342 | 345 |
343 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 346 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |