From 88d749436bf04c540448065a1601ece53bfdb312 Mon Sep 17 00:00:00 2001 From: "pinkerton@google.com" Date: Wed, 21 Jan 2009 22:04:44 +0000 Subject: add basic command handling for browser window and for where there are no windows open. Can now create new browser windows. Review URL: http://codereview.chromium.org/18458 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8387 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/temp_scaffolding_stubs.cpp | 7 ++++--- chrome/common/temp_scaffolding_stubs.h | 10 +--------- 2 files changed, 5 insertions(+), 12 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/temp_scaffolding_stubs.cpp b/chrome/common/temp_scaffolding_stubs.cpp index 3517c4f..bdfec42 100644 --- a/chrome/common/temp_scaffolding_stubs.cpp +++ b/chrome/common/temp_scaffolding_stubs.cpp @@ -212,9 +212,6 @@ void InstallJankometer(const CommandLine&) { //-------------------------------------------------------------------------- -void Browser::InitCommandState() { -} - void Browser::Observe(NotificationType type, const NotificationSource& source, const NotificationDetails& details) { @@ -223,3 +220,7 @@ void Browser::Observe(NotificationType type, LocationBarView* Browser::GetLocationBarView() const { return window_->GetLocationBarView(); } + +void Browser::NewWindow() { + Browser::OpenEmptyWindow(NULL); +} diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index 712ca0d..428cfb2 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -176,6 +176,7 @@ class Profile { SessionService* GetSessionService() { return NULL; } bool IsOffTheRecord() { return false; } URLRequestContext* GetRequestContext() { return NULL; } + virtual Profile* GetOriginalProfile() { return this; } private: std::wstring GetPrefFilePath(); @@ -280,15 +281,6 @@ class TabStripModel { scoped_ptr contents_; }; -class CommandUpdater { - public: - class CommandUpdaterDelegate { - public: - }; - - CommandUpdater(CommandUpdaterDelegate* const) { } -}; - class SelectFileDialog : public base::RefCountedThreadSafe { public: class Listener { -- cgit v1.1