| 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 "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
| 8 #include "chrome/browser/ui/browser_list_observer.h" | 8 #include "chrome/browser/ui/browser_list_observer.h" |
| 9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 | 10 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 | 158 |
| 159 bool TestBrowserWindow::IsToolbarVisible() const { | 159 bool TestBrowserWindow::IsToolbarVisible() const { |
| 160 return false; | 160 return false; |
| 161 } | 161 } |
| 162 | 162 |
| 163 gfx::Rect TestBrowserWindow::GetRootWindowResizerRect() const { | 163 gfx::Rect TestBrowserWindow::GetRootWindowResizerRect() const { |
| 164 return gfx::Rect(); | 164 return gfx::Rect(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 autofill::SaveCardBubbleView* TestBrowserWindow::ShowSaveCreditCardBubble( |
| 168 content::WebContents* contents, |
| 169 autofill::SaveCardBubbleController* controller) { |
| 170 return nullptr; |
| 171 } |
| 172 |
| 167 bool TestBrowserWindow::IsProfileResetBubbleSupported() const { | 173 bool TestBrowserWindow::IsProfileResetBubbleSupported() const { |
| 168 return false; | 174 return false; |
| 169 } | 175 } |
| 170 | 176 |
| 171 GlobalErrorBubbleViewBase* TestBrowserWindow::ShowProfileResetBubble( | 177 GlobalErrorBubbleViewBase* TestBrowserWindow::ShowProfileResetBubble( |
| 172 const base::WeakPtr<ProfileResetGlobalError>& global_error) { | 178 const base::WeakPtr<ProfileResetGlobalError>& global_error) { |
| 173 return nullptr; | 179 return nullptr; |
| 174 } | 180 } |
| 175 | 181 |
| 176 bool TestBrowserWindow::IsDownloadShelfVisible() const { | 182 bool TestBrowserWindow::IsDownloadShelfVisible() const { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 221 } |
| 216 | 222 |
| 217 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 223 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
| 218 BrowserList::RemoveObserver(this); | 224 BrowserList::RemoveObserver(this); |
| 219 } | 225 } |
| 220 | 226 |
| 221 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 227 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
| 222 if (browser->window() == window_.get()) | 228 if (browser->window() == window_.get()) |
| 223 delete this; | 229 delete this; |
| 224 } | 230 } |
| OLD | NEW |