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

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

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 struct ContextMenuParams; 31 struct ContextMenuParams;
32 class DownloadItem; 32 class DownloadItem;
33 class GURL; 33 class GURL;
34 class HtmlDialogUIDelegate; 34 class HtmlDialogUIDelegate;
35 struct NativeWebKeyboardEvent; 35 struct NativeWebKeyboardEvent;
36 class Profile; 36 class Profile;
37 class RenderViewHost; 37 class RenderViewHost;
38 class TabContents; 38 class TabContents;
39 struct WebApplicationInfo;
40 39
41 // Objects implement this interface to get notified about changes in the 40 // Objects implement this interface to get notified about changes in the
42 // TabContents and to provide necessary functionality. 41 // TabContents and to provide necessary functionality.
43 class TabContentsDelegate : public AutomationResourceRoutingDelegate { 42 class TabContentsDelegate : public AutomationResourceRoutingDelegate {
44 public: 43 public:
45 // Opens a new URL inside the passed in TabContents (if source is 0 open 44 // Opens a new URL inside the passed in TabContents (if source is 0 open
46 // in the current front-most tab), unless |disposition| indicates the url 45 // in the current front-most tab), unless |disposition| indicates the url
47 // should be opened in a new tab or window. 46 // should be opened in a new tab or window.
48 // 47 //
49 // A NULL source indicates the current tab (callers should probably use 48 // A NULL source indicates the current tab (callers should probably use
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Allows delegate to override navigation to the history entries. 276 // Allows delegate to override navigation to the history entries.
278 // Returns true to allow TabContents to continue with the default processing. 277 // Returns true to allow TabContents to continue with the default processing.
279 virtual bool OnGoToEntryOffset(int offset); 278 virtual bool OnGoToEntryOffset(int offset);
280 279
281 // Returns whether this tab contents should add the specified navigation to 280 // Returns whether this tab contents should add the specified navigation to
282 // history. 281 // history.
283 virtual bool ShouldAddNavigationToHistory( 282 virtual bool ShouldAddNavigationToHistory(
284 const history::HistoryAddPageArgs& add_page_args, 283 const history::HistoryAddPageArgs& add_page_args,
285 NavigationType::Type navigation_type); 284 NavigationType::Type navigation_type);
286 285
287 // Notification that a user's request to install an application has completed.
288 virtual void OnDidGetApplicationInfo(TabContents* tab_contents,
289 int32 page_id);
290
291 // Notification when an application programmatically requests installation.
292 virtual void OnInstallApplication(TabContents* tab_contents,
293 const WebApplicationInfo& app_info);
294
295 // Returns the native window framing the view containing the tab contents. 286 // Returns the native window framing the view containing the tab contents.
296 virtual gfx::NativeWindow GetFrameNativeWindow(); 287 virtual gfx::NativeWindow GetFrameNativeWindow();
297 288
298 // Notifies the delegate about the creation of a new TabContents. This 289 // Notifies the delegate about the creation of a new TabContents. This
299 // typically happens when popups are created. 290 // typically happens when popups are created.
300 virtual void TabContentsCreated(TabContents* new_contents); 291 virtual void TabContentsCreated(TabContents* new_contents);
301 292
302 // Returns whether infobars are enabled. Overrideable by child classes. 293 // Returns whether infobars are enabled. Overrideable by child classes.
303 virtual bool infobars_enabled(); 294 virtual bool infobars_enabled();
304 295
(...skipping 15 matching lines...) Expand all
320 virtual bool ShouldShowHungRendererDialog(); 311 virtual bool ShouldShowHungRendererDialog();
321 312
322 // Notification that a worker associated with this tab has crashed. 313 // Notification that a worker associated with this tab has crashed.
323 virtual void WorkerCrashed(); 314 virtual void WorkerCrashed();
324 315
325 protected: 316 protected:
326 virtual ~TabContentsDelegate(); 317 virtual ~TabContentsDelegate();
327 }; 318 };
328 319
329 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 320 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698