| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 return false; | 113 return false; |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool TestBrowserWindow::SupportsFullscreenWithToolbar() const { | 116 bool TestBrowserWindow::SupportsFullscreenWithToolbar() const { |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) { | 120 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) { |
| 121 } | 121 } |
| 122 | 122 |
| 123 void TestBrowserWindow::ToggleFullscreenToolbar() {} |
| 124 |
| 123 bool TestBrowserWindow::IsFullscreenWithToolbar() const { | 125 bool TestBrowserWindow::IsFullscreenWithToolbar() const { |
| 124 return false; | 126 return false; |
| 125 } | 127 } |
| 126 | 128 |
| 129 bool TestBrowserWindow::ShouldHideFullscreenToolbar() const { |
| 130 return false; |
| 131 } |
| 132 |
| 127 #if defined(OS_WIN) | 133 #if defined(OS_WIN) |
| 128 bool TestBrowserWindow::IsInMetroSnapMode() const { | 134 bool TestBrowserWindow::IsInMetroSnapMode() const { |
| 129 return false; | 135 return false; |
| 130 } | 136 } |
| 131 #endif | 137 #endif |
| 132 | 138 |
| 133 LocationBar* TestBrowserWindow::GetLocationBar() const { | 139 LocationBar* TestBrowserWindow::GetLocationBar() const { |
| 134 return const_cast<TestLocationBar*>(&location_bar_); | 140 return const_cast<TestLocationBar*>(&location_bar_); |
| 135 } | 141 } |
| 136 | 142 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 228 } |
| 223 | 229 |
| 224 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 230 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
| 225 BrowserList::RemoveObserver(this); | 231 BrowserList::RemoveObserver(this); |
| 226 } | 232 } |
| 227 | 233 |
| 228 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 234 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
| 229 if (browser->window() == window_.get()) | 235 if (browser->window() == window_.get()) |
| 230 delete this; | 236 delete this; |
| 231 } | 237 } |
| OLD | NEW |