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

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: Hide menu item on 10.6 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 {
117 return false;
118 }
119
120 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) { 116 void TestBrowserWindow::UpdateFullscreenWithToolbar(bool with_toolbar) {
121 } 117 }
122 118
119 void TestBrowserWindow::ToggleFullscreenToolbar() {}
120
123 bool TestBrowserWindow::IsFullscreenWithToolbar() const { 121 bool TestBrowserWindow::IsFullscreenWithToolbar() const {
124 return false; 122 return false;
125 } 123 }
126 124
125 bool TestBrowserWindow::ShouldHideFullscreenToolbar() const {
126 return false;
127 }
128
127 #if defined(OS_WIN) 129 #if defined(OS_WIN)
128 bool TestBrowserWindow::IsInMetroSnapMode() const { 130 bool TestBrowserWindow::IsInMetroSnapMode() const {
129 return false; 131 return false;
130 } 132 }
131 #endif 133 #endif
132 134
133 LocationBar* TestBrowserWindow::GetLocationBar() const { 135 LocationBar* TestBrowserWindow::GetLocationBar() const {
134 return const_cast<TestLocationBar*>(&location_bar_); 136 return const_cast<TestLocationBar*>(&location_bar_);
135 } 137 }
136 138
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 217 }
216 218
217 TestBrowserWindowOwner::~TestBrowserWindowOwner() { 219 TestBrowserWindowOwner::~TestBrowserWindowOwner() {
218 BrowserList::RemoveObserver(this); 220 BrowserList::RemoveObserver(this);
219 } 221 }
220 222
221 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { 223 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) {
222 if (browser->window() == window_.get()) 224 if (browser->window() == window_.get())
223 delete this; 225 delete this;
224 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698