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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // NOTE: This does not perform any EqualsDelegate() checks like AddInfoBar(). | 233 // NOTE: This does not perform any EqualsDelegate() checks like AddInfoBar(). |
234 void ReplaceInfoBar(InfoBarDelegate* old_delegate, | 234 void ReplaceInfoBar(InfoBarDelegate* old_delegate, |
235 InfoBarDelegate* new_delegate); | 235 InfoBarDelegate* new_delegate); |
236 | 236 |
237 // Enumeration and access functions. | 237 // Enumeration and access functions. |
238 size_t infobar_count() const { return infobars_.size(); } | 238 size_t infobar_count() const { return infobars_.size(); } |
239 // WARNING: This does not sanity-check |index|! | 239 // WARNING: This does not sanity-check |index|! |
240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); | 240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); |
241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } | 241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } |
242 | 242 |
| 243 // Stop this tab rendering in fullscreen mode. |
| 244 void ExitFullscreenMode(); |
| 245 |
243 private: | 246 private: |
244 // Internal helpers ---------------------------------------------------------- | 247 // Internal helpers ---------------------------------------------------------- |
245 | 248 |
246 // Message handlers. | 249 // Message handlers. |
247 void OnJSOutOfMemory(); | 250 void OnJSOutOfMemory(); |
248 void OnRegisterProtocolHandler(const std::string& protocol, | 251 void OnRegisterProtocolHandler(const std::string& protocol, |
249 const GURL& url, | 252 const GURL& url, |
250 const string16& title); | 253 const string16& title); |
251 void OnRegisterIntentHandler(const string16& action, | 254 void OnRegisterIntentHandler(const string16& action, |
252 const string16& type, | 255 const string16& type, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 362 |
360 // The supporting objects need to outlive the TabContents dtor (as they may | 363 // The supporting objects need to outlive the TabContents dtor (as they may |
361 // be called upon during its execution). As a result, this must come last | 364 // be called upon during its execution). As a result, this must come last |
362 // in the list. | 365 // in the list. |
363 scoped_ptr<TabContents> tab_contents_; | 366 scoped_ptr<TabContents> tab_contents_; |
364 | 367 |
365 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 368 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
366 }; | 369 }; |
367 | 370 |
368 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 371 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |