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

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

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 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 | Annotate | Revision Log
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/rect.h" 9 #include "ui/gfx/rect.h"
10 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 gfx::Rect TestBrowserWindow::GetRestoredBounds() const { 37 gfx::Rect TestBrowserWindow::GetRestoredBounds() const {
38 return gfx::Rect(); 38 return gfx::Rect();
39 } 39 }
40 40
41 gfx::Rect TestBrowserWindow::GetBounds() const { 41 gfx::Rect TestBrowserWindow::GetBounds() const {
42 return gfx::Rect(); 42 return gfx::Rect();
43 } 43 }
44 44
45 gfx::Rect TestBrowserWindow::GetContentBounds() const {
46 return gfx::Rect();
47 }
48
45 bool TestBrowserWindow::IsMaximized() const { 49 bool TestBrowserWindow::IsMaximized() const {
46 return false; 50 return false;
47 } 51 }
48 52
49 bool TestBrowserWindow::IsMinimized() const { 53 bool TestBrowserWindow::IsMinimized() const {
50 return false; 54 return false;
51 } 55 }
52 56
53 bool TestBrowserWindow::ShouldHideUIForFullscreen() const { 57 bool TestBrowserWindow::ShouldHideUIForFullscreen() const {
54 return false; 58 return false;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } // namespace 175 } // namespace
172 176
173 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { 177 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) {
174 TestBrowserWindow* window = new TestBrowserWindow; 178 TestBrowserWindow* window = new TestBrowserWindow;
175 new TestBrowserWindowOwner(window); 179 new TestBrowserWindowOwner(window);
176 params->window = window; 180 params->window = window;
177 return new Browser(*params); 181 return new Browser(*params);
178 } 182 }
179 183
180 } // namespace chrome 184 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | chrome/test/data/extensions/api_test/window_open/window_size/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698