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

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

Issue 2819086: Removal of TabContentsDelegate::GetBrowser() interface method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chrome/browser/automation/automation_resource_routing_delegate.h" 12 #include "chrome/browser/automation/automation_resource_routing_delegate.h"
13 #include "chrome/browser/tab_contents/navigation_entry.h" 13 #include "chrome/browser/tab_contents/navigation_entry.h"
14 #include "chrome/common/content_settings_types.h" 14 #include "chrome/common/content_settings_types.h"
15 #include "chrome/common/page_transition_types.h" 15 #include "chrome/common/page_transition_types.h"
16 #include "gfx/native_widget_types.h" 16 #include "gfx/native_widget_types.h"
17 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Point; 20 class Point;
21 class Rect; 21 class Rect;
22 class Size; 22 class Size;
23 } 23 }
24 24
25 class Browser;
26 class DownloadItem; 25 class DownloadItem;
27 class ExtensionFunctionDispatcher; 26 class ExtensionFunctionDispatcher;
28 class GURL; 27 class GURL;
29 class HtmlDialogUIDelegate; 28 class HtmlDialogUIDelegate;
30 struct NativeWebKeyboardEvent; 29 struct NativeWebKeyboardEvent;
31 class Profile; 30 class Profile;
32 class RenderViewHost; 31 class RenderViewHost;
33 class TabContents; 32 class TabContents;
34 class TemplateURL; 33 class TemplateURL;
35 struct ContextMenuParams; 34 struct ContextMenuParams;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Returns true to allow TabContents to continue with the default processing. 246 // Returns true to allow TabContents to continue with the default processing.
248 virtual bool OnGoToEntryOffset(int offset); 247 virtual bool OnGoToEntryOffset(int offset);
249 248
250 // Returns whether this tab contents should add navigations to history. 249 // Returns whether this tab contents should add navigations to history.
251 virtual bool ShouldAddNavigationsToHistory() const; 250 virtual bool ShouldAddNavigationsToHistory() const;
252 251
253 // Notification when web app info data is available 252 // Notification when web app info data is available
254 virtual void OnDidGetApplicationInfo(TabContents* tab_contents, 253 virtual void OnDidGetApplicationInfo(TabContents* tab_contents,
255 int32 page_id); 254 int32 page_id);
256 255
257 // Returns the browser in which the tab contents is being displayed.
258 virtual Browser* GetBrowser();
259
260 // Returns the native window framing the view containing the tab contents. 256 // Returns the native window framing the view containing the tab contents.
261 virtual gfx::NativeWindow GetFrameNativeWindow(); 257 virtual gfx::NativeWindow GetFrameNativeWindow();
262 258
263 // Notifies the delegate about the creation of a new TabContents. This 259 // Notifies the delegate about the creation of a new TabContents. This
264 // typically happens when popups are created. 260 // typically happens when popups are created.
265 virtual void TabContentsCreated(TabContents* new_contents); 261 virtual void TabContentsCreated(TabContents* new_contents);
266 262
267 // Returns whether infobars are enabled. Overrideable by child classes. 263 // Returns whether infobars are enabled. Overrideable by child classes.
268 virtual bool infobars_enabled(); 264 virtual bool infobars_enabled();
269 265
(...skipping 15 matching lines...) Expand all
285 // Sent when the user does a gesture that results in committing the match 281 // Sent when the user does a gesture that results in committing the match
286 // preview. The delegate should replace |source| with the |source|'s match 282 // preview. The delegate should replace |source| with the |source|'s match
287 // preview TabContents. 283 // preview TabContents.
288 virtual void CommitMatchPreview(TabContents* source); 284 virtual void CommitMatchPreview(TabContents* source);
289 285
290 protected: 286 protected:
291 virtual ~TabContentsDelegate(); 287 virtual ~TabContentsDelegate();
292 }; 288 };
293 289
294 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 290 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698