OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/test/base/test_browser_window.h" | 5 #include "chrome/test/base/test_browser_window.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/browser/ui/browser_list.h" | 9 #include "chrome/browser/ui/browser_list.h" |
10 #include "chrome/browser/ui/browser_list_observer.h" | 10 #include "chrome/browser/ui/browser_list_observer.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 } | 187 } |
188 | 188 |
189 void TestBrowserWindow::ExecuteExtensionCommand( | 189 void TestBrowserWindow::ExecuteExtensionCommand( |
190 const extensions::Extension* extension, | 190 const extensions::Extension* extension, |
191 const extensions::Command& command) {} | 191 const extensions::Command& command) {} |
192 | 192 |
193 ExclusiveAccessContext* TestBrowserWindow::GetExclusiveAccessContext() { | 193 ExclusiveAccessContext* TestBrowserWindow::GetExclusiveAccessContext() { |
194 return nullptr; | 194 return nullptr; |
195 } | 195 } |
196 | 196 |
197 std::string TestBrowserWindow::GetWorkspace() const { | |
198 return ""; | |
sky
2016/05/03 17:40:52
""->std::string()
Tom (Use chromium acct)
2016/05/03 19:38:39
Done.
| |
199 } | |
200 | |
197 // TestBrowserWindowOwner ----------------------------------------------------- | 201 // TestBrowserWindowOwner ----------------------------------------------------- |
198 | 202 |
199 TestBrowserWindowOwner::TestBrowserWindowOwner(TestBrowserWindow* window) | 203 TestBrowserWindowOwner::TestBrowserWindowOwner(TestBrowserWindow* window) |
200 : window_(window) { | 204 : window_(window) { |
201 BrowserList::AddObserver(this); | 205 BrowserList::AddObserver(this); |
202 } | 206 } |
203 | 207 |
204 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 208 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
205 BrowserList::RemoveObserver(this); | 209 BrowserList::RemoveObserver(this); |
206 } | 210 } |
207 | 211 |
208 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
209 if (browser->window() == window_.get()) | 213 if (browser->window() == window_.get()) |
210 delete this; | 214 delete this; |
211 } | 215 } |
OLD | NEW |