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 |
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 bool TestBrowserWindow::IsActive() const { | 17 bool TestBrowserWindow::IsActive() const { |
18 return false; | 18 return false; |
19 } | 19 } |
20 | 20 |
21 bool TestBrowserWindow::IsAlwaysOnTop() const { | 21 bool TestBrowserWindow::IsAlwaysOnTop() const { |
22 return false; | 22 return false; |
23 } | 23 } |
24 | 24 |
| 25 gfx::Rect TestBrowserWindow::ContentBoundsForWindowBounds( |
| 26 const gfx::Rect& window_bounds) const { |
| 27 NOTIMPLEMENTED() |
| 28 return gfx::Rect(); |
| 29 } |
| 30 |
| 31 gfx::Rect TestBrowserWindow::WindowBoundsForContentBounds( |
| 32 const gfx::Rect& content_bounds) const { |
| 33 NOTIMPLEMENTED() |
| 34 return gfx::Rect(); |
| 35 } |
| 36 |
25 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() { | 37 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() { |
26 return NULL; | 38 return NULL; |
27 } | 39 } |
28 | 40 |
29 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { | 41 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { |
30 return NULL; | 42 return NULL; |
31 } | 43 } |
32 | 44 |
33 StatusBubble* TestBrowserWindow::GetStatusBubble() { | 45 StatusBubble* TestBrowserWindow::GetStatusBubble() { |
34 return NULL; | 46 return NULL; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 } | 184 } |
173 | 185 |
174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { | 186 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { |
175 TestBrowserWindow* window = new TestBrowserWindow; | 187 TestBrowserWindow* window = new TestBrowserWindow; |
176 new TestBrowserWindowOwner(window); | 188 new TestBrowserWindowOwner(window); |
177 params->window = window; | 189 params->window = window; |
178 return new Browser(*params); | 190 return new Browser(*params); |
179 } | 191 } |
180 | 192 |
181 } // namespace chrome | 193 } // namespace chrome |
OLD | NEW |