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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 bool TestBrowserWindow::IsFullscreen() const { | 109 bool TestBrowserWindow::IsFullscreen() const { |
110 return false; | 110 return false; |
111 } | 111 } |
112 | 112 |
113 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { | 113 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { |
114 return false; | 114 return false; |
115 } | 115 } |
116 | 116 |
117 bool TestBrowserWindow::SupportsFullscreenWithToolbar() const { | |
118 return false; | |
119 } | |
120 | |
121 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) { | |
122 } | |
123 | |
124 void TestBrowserWindow::ToggleFullscreenToolbar() {} | |
125 | |
126 bool TestBrowserWindow::IsFullscreenWithToolbar() const { | |
127 return false; | |
128 } | |
129 | |
130 bool TestBrowserWindow::ShouldHideFullscreenToolbar() const { | |
131 return false; | |
132 } | |
133 | |
134 #if defined(OS_WIN) | 117 #if defined(OS_WIN) |
135 bool TestBrowserWindow::IsInMetroSnapMode() const { | 118 bool TestBrowserWindow::IsInMetroSnapMode() const { |
136 return false; | 119 return false; |
137 } | 120 } |
138 #endif | 121 #endif |
139 | 122 |
140 LocationBar* TestBrowserWindow::GetLocationBar() const { | 123 LocationBar* TestBrowserWindow::GetLocationBar() const { |
141 return const_cast<TestLocationBar*>(&location_bar_); | 124 return const_cast<TestLocationBar*>(&location_bar_); |
142 } | 125 } |
143 | 126 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 203 } |
221 | 204 |
222 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 205 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
223 BrowserList::RemoveObserver(this); | 206 BrowserList::RemoveObserver(this); |
224 } | 207 } |
225 | 208 |
226 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 209 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
227 if (browser->window() == window_.get()) | 210 if (browser->window() == window_.get()) |
228 delete this; | 211 delete this; |
229 } | 212 } |
OLD | NEW |