diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 22:04:44 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-21 22:04:44 +0000 |
commit | 88d749436bf04c540448065a1601ece53bfdb312 (patch) | |
tree | 4be4d6d86a0884932d13efd92a2a18d60a7f962f /chrome/common | |
parent | 1c36b962d877273125d92c4996a136fc1ac7e806 (diff) | |
download | chromium_src-88d749436bf04c540448065a1601ece53bfdb312.zip chromium_src-88d749436bf04c540448065a1601ece53bfdb312.tar.gz chromium_src-88d749436bf04c540448065a1601ece53bfdb312.tar.bz2 |
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
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.cpp | 7 | ||||
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 10 |
2 files changed, 5 insertions, 12 deletions
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<TabContents> contents_; }; -class CommandUpdater { - public: - class CommandUpdaterDelegate { - public: - }; - - CommandUpdater(CommandUpdaterDelegate* const) { } -}; - class SelectFileDialog : public base::RefCountedThreadSafe<SelectFileDialog> { public: class Listener { |