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 // TestBrowserWindowOwner ----------------------------------------------------- | 197 std::string TestBrowserWindow::GetWorkspace() const { |
198 return ""; | |
199 } | |
200 | |
201 // TestBrowserWindowOwner | |
Elliot Glaysher
2016/05/02 21:52:36
Remove the newline so this is one line like before
Tom (Use chromium acct)
2016/05/02 23:34:02
Done. Idk how that happened lol
| |
202 // ----------------------------------------------------- | |
198 | 203 |
199 TestBrowserWindowOwner::TestBrowserWindowOwner(TestBrowserWindow* window) | 204 TestBrowserWindowOwner::TestBrowserWindowOwner(TestBrowserWindow* window) |
200 : window_(window) { | 205 : window_(window) { |
201 BrowserList::AddObserver(this); | 206 BrowserList::AddObserver(this); |
202 } | 207 } |
203 | 208 |
204 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 209 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
205 BrowserList::RemoveObserver(this); | 210 BrowserList::RemoveObserver(this); |
206 } | 211 } |
207 | 212 |
208 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 213 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
209 if (browser->window() == window_.get()) | 214 if (browser->window() == window_.get()) |
210 delete this; | 215 delete this; |
211 } | 216 } |
OLD | NEW |