summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.h')
-rw-r--r--chrome/common/temp_scaffolding_stubs.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index d724764..71c534d 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -419,120 +419,6 @@ class FaviconStatus {
GURL url_;
};
-class TabContents : public PageNavigator, public NotificationObserver {
- public:
- enum InvalidateTypes {
- INVALIDATE_URL = 1,
- INVALIDATE_TITLE = 2,
- INVALIDATE_FAVICON = 4,
- INVALIDATE_LOAD = 8,
- INVALIDATE_EVERYTHING = 0xFFFFFFFF
- };
- TabContents(TabContentsType type)
- : type_(type), is_crashed_(false), is_active_(true), is_loading_(false),
- is_being_destroyed_(false), waiting_for_response_(false),
- shelf_visible_(false), controller_(), delegate_(), max_page_id_(-1) { }
- virtual ~TabContents();
- NavigationController* controller() const { return controller_; }
- void set_controller(NavigationController* c) { controller_ = c; }
- virtual WebContents* AsWebContents() { return NULL; }
- WebContents* AsWebContents() const {
- return const_cast<TabContents*>(this)->AsWebContents();
- }
- virtual SkBitmap GetFavIcon() const;
- const GURL& GetURL() const;
- virtual const string16& GetTitle() const;
- TabContentsType type() const { return type_; }
- void set_type(TabContentsType type) { type_ = type; }
- virtual void Focus() { NOTIMPLEMENTED(); }
- virtual void Stop() { NOTIMPLEMENTED(); }
- Profile* profile() const {
- return controller_ ? controller_->profile() : NULL;
- }
- virtual void CloseContents();
- virtual void SetupController(Profile* profile);
- virtual void WasHidden();
- virtual void SetInitialFocus() { NOTIMPLEMENTED(); }
- virtual void SetInitialFocus(bool reverse) { NOTIMPLEMENTED(); }
- virtual void RestoreFocus() { NOTIMPLEMENTED(); }
- static TabContentsType TypeForURL(GURL* url);
- static TabContents* CreateWithType(TabContentsType type,
- Profile* profile,
- SiteInstance* instance);
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details) { NOTIMPLEMENTED(); }
- virtual void DidBecomeSelected();
- virtual void SetDownloadShelfVisible(bool visible);
- bool IsDownloadShelfVisible() { return shelf_visible_; }
- virtual void Destroy();
- virtual void SetIsLoading(bool, LoadNotificationDetails*);
- bool is_crashed() const { return is_crashed_; }
- virtual void SetIsCrashed(bool);
- bool capturing_contents() const {
- NOTIMPLEMENTED();
- return false;
- }
- void set_capturing_contents(bool) { NOTIMPLEMENTED(); }
- bool is_active() const { return is_active_; }
- void set_is_active(bool active) { is_active_ = active; }
- bool is_loading() const { return is_loading_; }
- bool is_being_destroyed() const { return is_being_destroyed_; }
- bool waiting_for_response() const { return waiting_for_response_; }
- void SetNotWaitingForResponse() { waiting_for_response_ = false; }
- void NotifyNavigationStateChanged(unsigned int);
- TabContentsDelegate* delegate() const { return delegate_; }
- void set_delegate(TabContentsDelegate* d) { delegate_ = d; }
- void AddInfoBar(InfoBarDelegate*) { NOTIMPLEMENTED(); }
- virtual void OpenURL(const GURL&, const GURL&, WindowOpenDisposition,
- PageTransition::Type);
- void AddNewContents(TabContents* new_contents,
- WindowOpenDisposition disposition,
- const gfx::Rect& initial_pos,
- bool user_gesture) { NOTIMPLEMENTED(); }
- virtual void Activate();
- virtual bool SupportsURL(GURL*);
- virtual SiteInstance* GetSiteInstance() const { return NULL; }
- int32 GetMaxPageID();
- void UpdateMaxPageID(int32);
- virtual bool NavigateToPendingEntry(bool);
- virtual DOMUIHost* AsDOMUIHost() { return NULL; }
- virtual std::wstring GetStatusText() const { return std::wstring(); }
- static void RegisterUserPrefs(PrefService* prefs);
- virtual void CreateView() {}
- virtual gfx::NativeView GetNativeView() const { return NULL; }
- static TabContentsFactory* RegisterFactory(TabContentsType type,
- TabContentsFactory* factory);
- void RemoveInfoBar(InfoBarDelegate* delegate) { NOTIMPLEMENTED(); }
- virtual bool ShouldDisplayURL() { return true; }
- void ToolbarSizeChanged(bool is_animating);
- void OnStartDownload(DownloadItem* download);
- DownloadShelf* GetDownloadShelf();
- static void MigrateShelf(TabContents* from, TabContents* to);
- void MigrateShelfFrom(TabContents* tab_contents);
- virtual const std::wstring GetDefaultTitle() const;
- protected:
- typedef std::vector<ConstrainedWindow*> ConstrainedWindowList;
- ConstrainedWindowList child_windows_;
- private:
- virtual void ReleaseDownloadShelf();
- friend class AutomationProvider;
-
- scoped_ptr<DownloadShelf> download_shelf_;
- TabContentsType type_;
- bool is_crashed_;
- bool is_active_;
- bool is_loading_;
- bool is_being_destroyed_;
- bool waiting_for_response_;
- bool shelf_visible_;
- GURL url_;
- std::wstring title_;
- NavigationController* controller_;
- TabContentsDelegate* delegate_;
- int32 max_page_id_;
-};
-
class SelectFileDialog : public base::RefCountedThreadSafe<SelectFileDialog> {
public:
enum Type {