diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 21:49:38 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 21:49:38 +0000 |
commit | 5fac9623175cb7bda27ccc079ea19b3f90471149 (patch) | |
tree | 9d713762548943c72d2b699146dda5d46512fc04 /chrome/common/temp_scaffolding_stubs.h | |
parent | 0967bb557cdfe4847074f49095bba57170ca5439 (diff) | |
download | chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.zip chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.tar.gz chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.tar.bz2 |
Enable render_widget_host, render_view_host and backing_store. Remove the RenderWidgetHostManager from the scaffolding.
Review URL: http://codereview.chromium.org/20044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.h')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 162 |
1 files changed, 40 insertions, 122 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index cab8c87..fe3dc2a 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -23,9 +23,14 @@ #include "chrome/browser/search_engines/template_url.h" #include "chrome/browser/tab_contents/navigation_entry.h" #include "chrome/browser/tab_contents/tab_contents_type.h" +#include "chrome/browser/renderer_host/render_view_host.h" +#include "chrome/browser/renderer_host/render_widget_host.h" +#include "chrome/browser/renderer_host/render_view_host_delegate.h" #include "chrome/common/navigation_types.h" #include "chrome/common/notification_service.h" #include "chrome/common/page_transition_types.h" +#include "chrome/common/pref_names.h" +#include "chrome/common/pref_service.h" #include "chrome/common/render_messages.h" #include "googleurl/src/gurl.h" #include "skia/include/SkBitmap.h" @@ -352,6 +357,9 @@ class ResourceDispatcherHost { class DebuggerWrapper : public base::RefCountedThreadSafe<DebuggerWrapper> { public: explicit DebuggerWrapper(int port) {} + void DebugMessage(const std::wstring&) {} + void OnDebugAttach() {} + void OnDebugDisconnect() {} }; namespace views { @@ -364,16 +372,6 @@ class AcceleratorHandler { //--------------------------------------------------------------------------- // These stubs are for Browser -class RenderViewHostDelegate { - public: - class View { - public: - }; - class Save { - public: - }; -}; - class SavePackage : public base::RefCountedThreadSafe<SavePackage>, public RenderViewHostDelegate::Save { public: @@ -413,6 +411,13 @@ class SavePackage : public base::RefCountedThreadSafe<SavePackage>, NOTIMPLEMENTED(); return true; } + virtual void OnReceivedSavableResourceLinksForCurrentPage( + const std::vector<GURL>& resources_list, + const std::vector<GURL>& referrers_list, + const std::vector<GURL>& frames_list) { NOTIMPLEMENTED(); } + virtual void OnReceivedSerializedHtmlData(const GURL& frame_url, + const std::string& data, + int32 status) { NOTIMPLEMENTED(); } }; class DebuggerWindow : public base::RefCountedThreadSafe<DebuggerWindow> { @@ -590,69 +595,17 @@ class RenderWidgetHostView { NOTIMPLEMENTED(); return false; } - virtual void SetSize(gfx::Size) { NOTIMPLEMENTED(); } -}; - -class RenderWidgetHost { - public: - RenderWidgetHost() : process_(), view_() { } - RenderProcessHost* process() const { - NOTIMPLEMENTED(); - return process_; - } - RenderWidgetHostView* view() const { - NOTIMPLEMENTED(); - return view_; - } - private: - RenderProcessHost* process_; - RenderWidgetHostView* view_; -}; - -class RenderViewHost : public RenderWidgetHost { - public: - bool HasUnloadListener() const { - NOTIMPLEMENTED(); - return false; - } - void FirePageBeforeUnload() { NOTIMPLEMENTED(); } - void SetPageEncoding(const std::wstring& encoding) { NOTIMPLEMENTED(); } - SiteInstance* site_instance() const { - NOTIMPLEMENTED(); + virtual gfx::NativeView GetPluginNativeView() { + NOTIMPLEMENTED(); return NULL; } - void NavigateToEntry(const NavigationEntry& entry, bool is_reload) { - NOTIMPLEMENTED(); - } - void Cut() { NOTIMPLEMENTED(); } - void Copy() { NOTIMPLEMENTED(); } - void Paste() { NOTIMPLEMENTED(); } - void DisassociateFromPopupCount() { NOTIMPLEMENTED(); } - void PopupNotificationVisibilityChanged(bool) { NOTIMPLEMENTED(); } - void GetApplicationInfo(int32 page_id) { NOTIMPLEMENTED(); } - bool PrintPages() { - NOTIMPLEMENTED(); - return false; - } - void SetInitialFocus(bool) { NOTIMPLEMENTED(); } - void UnloadListenerHasFired() { NOTIMPLEMENTED(); } - bool IsRenderViewLive() { - NOTIMPLEMENTED(); - return true; - } - void FileSelected(const std::wstring&) { NOTIMPLEMENTED(); } - void MultiFilesSelected(const std::vector<std::wstring>&) { - NOTIMPLEMENTED(); - } - bool CreateRenderView() { - NOTIMPLEMENTED(); - return true; - } - void SetAlternateErrorPageURL(const GURL&) { NOTIMPLEMENTED(); } - void UpdateWebPreferences(WebPreferences) { NOTIMPLEMENTED(); } - void ReservePageIDRange(int) { NOTIMPLEMENTED(); } + virtual void UpdateCursorIfOverSelf() { NOTIMPLEMENTED(); } + virtual void SetTooltipText(const std::wstring& tooltip_text) + { NOTIMPLEMENTED(); } + virtual void SetSize(gfx::Size) { NOTIMPLEMENTED(); } }; + class LoadNotificationDetails { public: LoadNotificationDetails(const GURL&, PageTransition::Type, @@ -746,6 +699,9 @@ class TabContents : public NotificationObserver { void AddInfoBar(InfoBarDelegate* delegate) { NOTIMPLEMENTED(); } void OpenURL(const GURL&, const GURL&, WindowOpenDisposition, PageTransition::Type) { NOTIMPLEMENTED(); } + static void RegisterUserPrefs(PrefService* prefs) { + prefs->RegisterBooleanPref(prefs::kBlockPopups, false); + } protected: typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; ConstrainedWindowList child_windows_; @@ -935,6 +891,21 @@ class WebContentsView : public RenderViewHostDelegate::View { } void RenderWidgetHostDestroyed(RenderWidgetHost*) { NOTIMPLEMENTED(); } void SetPageTitle(const std::wstring&) { NOTIMPLEMENTED(); } + virtual void CreateNewWindow(int, + base::WaitableEvent*) { NOTIMPLEMENTED(); } + virtual void CreateNewWidget(int, bool) { NOTIMPLEMENTED(); } + virtual void ShowCreatedWindow(int, WindowOpenDisposition, + const gfx::Rect&, bool) { NOTIMPLEMENTED(); } + virtual void ShowCreatedWidget(int, const gfx::Rect&) { NOTIMPLEMENTED(); } + virtual void ShowContextMenu( + const ViewHostMsg_ContextMenu_Params&) { NOTIMPLEMENTED(); } + virtual void StartDragging(const WebDropData&) { NOTIMPLEMENTED(); } + virtual void UpdateDragCursor(bool) { NOTIMPLEMENTED(); } + virtual void TakeFocus(bool) { NOTIMPLEMENTED(); } + virtual void HandleKeyboardEvent(const WebKeyboardEvent&) + { NOTIMPLEMENTED(); } + virtual void OnFindReply(int, int, const gfx::Rect&, int, + bool) { NOTIMPLEMENTED(); } }; class WebContentsViewWin : public WebContentsView { @@ -942,59 +913,6 @@ class WebContentsViewWin : public WebContentsView { WebContentsViewWin(WebContents*) { } }; -class RenderViewHostFactory { - public: -}; - -class RenderViewHostManager { - public: - class Delegate { - public: - }; - RenderViewHostManager(RenderViewHostFactory*, RenderViewHostDelegate*, - Delegate* delegate) - : render_view_host_(new RenderViewHost), interstitial_page_() { } - RenderViewHost* current_host() const { - NOTIMPLEMENTED(); - return render_view_host_; - } - void Init(Profile*, SiteInstance*, int, base::WaitableEvent*) { - NOTIMPLEMENTED(); - } - void Shutdown() { NOTIMPLEMENTED(); } - InterstitialPage* interstitial_page() const { - return interstitial_page_; - } - void set_interstitial_page(InterstitialPage* interstitial_page) { - interstitial_page_ = interstitial_page; - } - void remove_interstitial_page() { interstitial_page_ = NULL; } - RenderWidgetHostView* current_view() const { - if (!render_view_host_) return NULL; - return render_view_host_->view(); - } - void CrossSiteNavigationCanceled() { NOTIMPLEMENTED(); } - void ShouldClosePage(bool) { NOTIMPLEMENTED(); } - void OnCrossSiteResponse(int, int) { NOTIMPLEMENTED(); } - RenderViewHost* Navigate(const NavigationEntry&) { - NOTIMPLEMENTED(); - return render_view_host_; - } - void Stop() { NOTIMPLEMENTED(); } - void OnJavaScriptMessageBoxClosed(IPC::Message*, bool, - const std::wstring&) { NOTIMPLEMENTED(); } - void SetIsLoading(bool) { NOTIMPLEMENTED(); } - void DidNavigateMainFrame(RenderViewHost*) { NOTIMPLEMENTED(); } - void RendererAbortedProvisionalLoad(RenderViewHost*) { NOTIMPLEMENTED(); } - bool ShouldCloseTabOnUnresponsiveRenderer() { - NOTIMPLEMENTED(); - return false; - } - private: - RenderViewHost* render_view_host_; - InterstitialPage* interstitial_page_; -}; - class WebApp : public base::RefCountedThreadSafe<WebApp> { public: class Observer { |