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

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: Clean up more stuff 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 bool TestBrowserWindow::IsFullscreen() const { 108 bool TestBrowserWindow::IsFullscreen() const {
109 return false; 109 return false;
110 } 110 }
111 111
112 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { 112 bool TestBrowserWindow::IsFullscreenBubbleVisible() const {
113 return false; 113 return false;
114 } 114 }
115 115
116 bool TestBrowserWindow::SupportsFullscreenWithToolbar() const { 116 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) {}
117
118 void TestBrowserWindow::ToggleFullscreenToolbar() {}
119
120 bool TestBrowserWindow::IsFullscreenWithToolbar() const {
117 return false; 121 return false;
118 } 122 }
119 123
120 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) { 124 bool ShouldHideFullscreenToolbar() const {
121 }
122
123 bool TestBrowserWindow::IsFullscreenWithToolbar() const {
124 return false; 125 return false;
125 } 126 }
126 127
127 #if defined(OS_WIN) 128 #if defined(OS_WIN)
128 bool TestBrowserWindow::IsInMetroSnapMode() const { 129 bool TestBrowserWindow::IsInMetroSnapMode() const {
129 return false; 130 return false;
130 } 131 }
131 #endif 132 #endif
132 133
133 LocationBar* TestBrowserWindow::GetLocationBar() const { 134 LocationBar* TestBrowserWindow::GetLocationBar() const {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 216 }
216 217
217 TestBrowserWindowOwner::~TestBrowserWindowOwner() { 218 TestBrowserWindowOwner::~TestBrowserWindowOwner() {
218 BrowserList::RemoveObserver(this); 219 BrowserList::RemoveObserver(this);
219 } 220 }
220 221
221 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { 222 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) {
222 if (browser->window() == window_.get()) 223 if (browser->window() == window_.get())
223 delete this; 224 delete this;
224 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698