Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/test/base/test_browser_window.cc

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and merge code Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698