Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 890005: Add a command line flag to disable infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
286 protected: 289 protected:
287 ~TabContentsDelegate() {} 290 ~TabContentsDelegate() {}
288 }; 291 };
289 292
290 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 293 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/test/automation/automation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698