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

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

Issue 1704793002: Remove kDisableDownloadNotification and stop compiling shelf code on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 months 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 "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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 autofill::SaveCardBubbleController* controller, 163 autofill::SaveCardBubbleController* controller,
164 bool user_gesture) { 164 bool user_gesture) {
165 return nullptr; 165 return nullptr;
166 } 166 }
167 167
168 bool TestBrowserWindow::IsDownloadShelfVisible() const { 168 bool TestBrowserWindow::IsDownloadShelfVisible() const {
169 return false; 169 return false;
170 } 170 }
171 171
172 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { 172 DownloadShelf* TestBrowserWindow::GetDownloadShelf() {
173 #if defined(OS_CHROMEOS)
174 return nullptr;
175 #else
173 return &download_shelf_; 176 return &download_shelf_;
177 #endif
174 } 178 }
175 179
176 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( 180 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds(
177 const gfx::Rect& bounds) { 181 const gfx::Rect& bounds) {
178 return NEW_POPUP; 182 return NEW_POPUP;
179 } 183 }
180 184
181 FindBar* TestBrowserWindow::CreateFindBar() { 185 FindBar* TestBrowserWindow::CreateFindBar() {
182 return NULL; 186 return NULL;
183 } 187 }
(...skipping 23 matching lines...) Expand all
207 } 211 }
208 212
209 TestBrowserWindowOwner::~TestBrowserWindowOwner() { 213 TestBrowserWindowOwner::~TestBrowserWindowOwner() {
210 BrowserList::RemoveObserver(this); 214 BrowserList::RemoveObserver(this);
211 } 215 }
212 216
213 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { 217 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) {
214 if (browser->window() == window_.get()) 218 if (browser->window() == window_.get())
215 delete this; 219 delete this;
216 } 220 }
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