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

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

Issue 10911274: Adding new window management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
11 using content::NativeWebKeyboardEvent; 11 using content::NativeWebKeyboardEvent;
12 12
13 TestBrowserWindow::TestBrowserWindow() {} 13 TestBrowserWindow::TestBrowserWindow() {}
14 14
15 TestBrowserWindow::~TestBrowserWindow() {} 15 TestBrowserWindow::~TestBrowserWindow() {}
16 16
17 void TestBrowserWindow::SetBounds(const gfx::Rect& bounds) {
18 bounds_ = bounds;
19 }
20
17 bool TestBrowserWindow::IsActive() const { 21 bool TestBrowserWindow::IsActive() const {
18 return false; 22 return false;
19 } 23 }
20 24
21 bool TestBrowserWindow::IsAlwaysOnTop() const { 25 bool TestBrowserWindow::IsAlwaysOnTop() const {
22 return false; 26 return false;
23 } 27 }
24 28
25 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() { 29 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() {
26 return NULL; 30 return NULL;
27 } 31 }
28 32
29 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { 33 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() {
30 return NULL; 34 return NULL;
31 } 35 }
32 36
33 StatusBubble* TestBrowserWindow::GetStatusBubble() { 37 StatusBubble* TestBrowserWindow::GetStatusBubble() {
34 return NULL; 38 return NULL;
35 } 39 }
36 40
37 gfx::Rect TestBrowserWindow::GetRestoredBounds() const { 41 gfx::Rect TestBrowserWindow::GetRestoredBounds() const {
38 return gfx::Rect(); 42 return gfx::Rect();
39 } 43 }
40 44
41 gfx::Rect TestBrowserWindow::GetBounds() const { 45 gfx::Rect TestBrowserWindow::GetBounds() const {
42 return gfx::Rect(); 46 return bounds_;
43 } 47 }
44 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
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 172 }
169 173
170 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { 174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) {
171 TestBrowserWindow* window = new TestBrowserWindow; 175 TestBrowserWindow* window = new TestBrowserWindow;
172 new TestBrowserWindowOwner(window); 176 new TestBrowserWindowOwner(window);
173 params->window = window; 177 params->window = window;
174 return new Browser(*params); 178 return new Browser(*params);
175 } 179 }
176 180
177 } // namespace chrome 181 } // namespace chrome
OLDNEW
« chrome/browser/ui/window_sizer/window_sizer_ash.cc ('K') | « 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