| 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 "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/browser/ui/browser_list.h" | 8 #include "chrome/browser/ui/browser_list.h" |
| 9 #include "chrome/browser/ui/browser_list_observer.h" | 9 #include "chrome/browser/ui/browser_list_observer.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 autofill::SaveCardBubbleController* controller, | 163 autofill::SaveCardBubbleController* controller, |
| 164 bool user_gesture) { | 164 bool user_gesture) { |
| 165 return nullptr; | 165 return nullptr; |
| 166 } | 166 } |
| 167 | 167 |
| 168 bool TestBrowserWindow::IsDownloadShelfVisible() const { | 168 bool TestBrowserWindow::IsDownloadShelfVisible() const { |
| 169 return false; | 169 return false; |
| 170 } | 170 } |
| 171 | 171 |
| 172 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { | 172 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { |
| 173 #if defined(OS_CHROMEOS) |
| 174 return nullptr; |
| 175 #else |
| 173 return &download_shelf_; | 176 return &download_shelf_; |
| 177 #endif |
| 174 } | 178 } |
| 175 | 179 |
| 176 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | 180 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( |
| 177 const gfx::Rect& bounds) { | 181 const gfx::Rect& bounds) { |
| 178 return NEW_POPUP; | 182 return NEW_POPUP; |
| 179 } | 183 } |
| 180 | 184 |
| 181 FindBar* TestBrowserWindow::CreateFindBar() { | 185 FindBar* TestBrowserWindow::CreateFindBar() { |
| 182 return NULL; | 186 return NULL; |
| 183 } | 187 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 207 } | 211 } |
| 208 | 212 |
| 209 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 213 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
| 210 BrowserList::RemoveObserver(this); | 214 BrowserList::RemoveObserver(this); |
| 211 } | 215 } |
| 212 | 216 |
| 213 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 217 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
| 214 if (browser->window() == window_.get()) | 218 if (browser->window() == window_.get()) |
| 215 delete this; | 219 delete this; |
| 216 } | 220 } |
| OLD | NEW |