OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 StatusBubble* TestBrowserWindow::GetStatusBubble() { | 33 StatusBubble* TestBrowserWindow::GetStatusBubble() { |
34 return NULL; | 34 return NULL; |
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 ui::WindowShowState TestBrowserWindow::GetRestoredState() const { |
| 42 return ui::SHOW_STATE_DEFAULT; |
| 43 } |
| 44 |
41 gfx::Rect TestBrowserWindow::GetBounds() const { | 45 gfx::Rect TestBrowserWindow::GetBounds() const { |
42 return gfx::Rect(); | 46 return gfx::Rect(); |
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; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } // namespace | 172 } // namespace |
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 |
OLD | NEW |