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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Returns the browser in which the tab contents is being displayed. | 276 // Returns the browser in which the tab contents is being displayed. |
277 virtual Browser* GetBrowser() { return NULL; } | 277 virtual Browser* GetBrowser() { return NULL; } |
278 | 278 |
279 // Returns the native window framing the view containing the tab contents. | 279 // Returns the native window framing the view containing the tab contents. |
280 virtual gfx::NativeWindow GetFrameNativeWindow() { return NULL; } | 280 virtual gfx::NativeWindow GetFrameNativeWindow() { return NULL; } |
281 | 281 |
282 // Notifies the delegate about the creation of a new TabContents. This | 282 // Notifies the delegate about the creation of a new TabContents. This |
283 // typically happens when popups are created. | 283 // typically happens when popups are created. |
284 virtual void TabContentsCreated(TabContents* new_contents) {} | 284 virtual void TabContentsCreated(TabContents* new_contents) {} |
285 | 285 |
286 // Returns whether infobars are enabled. Overrideable by child classes. | |
287 virtual bool infobars_enabled() { return true; } | |
288 | |
289 protected: | 286 protected: |
290 ~TabContentsDelegate() {} | 287 ~TabContentsDelegate() {} |
291 }; | 288 }; |
292 | 289 |
293 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 290 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |