| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool TestBrowserWindow::IsTabStripEditable() const { | 144 bool TestBrowserWindow::IsTabStripEditable() const { |
| 145 return false; | 145 return false; |
| 146 } | 146 } |
| 147 | 147 |
| 148 bool TestBrowserWindow::IsToolbarVisible() const { | 148 bool TestBrowserWindow::IsToolbarVisible() const { |
| 149 return false; | 149 return false; |
| 150 } | 150 } |
| 151 | 151 |
| 152 ShowTranslateBubbleResult TestBrowserWindow::ShowTranslateBubble( |
| 153 content::WebContents* contents, |
| 154 translate::TranslateStep step, |
| 155 translate::TranslateErrors::Type error_type, |
| 156 bool is_user_gesture) { |
| 157 return ShowTranslateBubbleResult::SUCCESS; |
| 158 } |
| 159 |
| 152 autofill::SaveCardBubbleView* TestBrowserWindow::ShowSaveCreditCardBubble( | 160 autofill::SaveCardBubbleView* TestBrowserWindow::ShowSaveCreditCardBubble( |
| 153 content::WebContents* contents, | 161 content::WebContents* contents, |
| 154 autofill::SaveCardBubbleController* controller, | 162 autofill::SaveCardBubbleController* controller, |
| 155 bool user_gesture) { | 163 bool user_gesture) { |
| 156 return nullptr; | 164 return nullptr; |
| 157 } | 165 } |
| 158 | 166 |
| 159 bool TestBrowserWindow::IsDownloadShelfVisible() const { | 167 bool TestBrowserWindow::IsDownloadShelfVisible() const { |
| 160 return false; | 168 return false; |
| 161 } | 169 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 214 } |
| 207 | 215 |
| 208 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 216 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
| 209 BrowserList::RemoveObserver(this); | 217 BrowserList::RemoveObserver(this); |
| 210 } | 218 } |
| 211 | 219 |
| 212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 220 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
| 213 if (browser->window() == window_.get()) | 221 if (browser->window() == window_.get()) |
| 214 delete this; | 222 delete this; |
| 215 } | 223 } |
| OLD | NEW |