OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/test/test_browser_window.h" | |
6 | |
7 #include "ui/gfx/rect.h" | |
8 | |
9 TestBrowserWindow::TestBrowserWindow(Browser* browser) {} | |
10 | |
11 TestBrowserWindow::~TestBrowserWindow() {} | |
12 | |
13 bool TestBrowserWindow::IsActive() const { | |
14 return false; | |
15 } | |
16 | |
17 gfx::NativeWindow TestBrowserWindow::GetNativeHandle() { | |
18 return NULL; | |
19 } | |
20 | |
21 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { | |
22 return NULL; | |
23 } | |
24 | |
25 StatusBubble* TestBrowserWindow::GetStatusBubble() { | |
26 return NULL; | |
27 } | |
28 | |
29 gfx::Rect TestBrowserWindow::GetRestoredBounds() const { | |
30 return gfx::Rect(); | |
31 } | |
32 | |
33 gfx::Rect TestBrowserWindow::GetBounds() const { | |
34 return gfx::Rect(); | |
35 } | |
36 | |
37 bool TestBrowserWindow::IsMaximized() const { | |
38 return false; | |
39 } | |
40 | |
41 bool TestBrowserWindow::IsFullscreen() const { | |
42 return false; | |
43 } | |
44 | |
45 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { | |
46 return false; | |
47 } | |
48 | |
49 LocationBar* TestBrowserWindow::GetLocationBar() const { | |
50 return const_cast<TestLocationBar*>(&location_bar_); | |
51 } | |
52 | |
53 bool TestBrowserWindow::PreHandleKeyboardEvent( | |
54 const NativeWebKeyboardEvent& event, | |
55 bool* is_keyboard_shortcut) { | |
56 return false; | |
57 } | |
58 | |
59 bool TestBrowserWindow::IsBookmarkBarVisible() const { | |
60 return false; | |
61 } | |
62 | |
63 bool TestBrowserWindow::IsBookmarkBarAnimating() const { | |
64 return false; | |
65 } | |
66 | |
67 bool TestBrowserWindow::IsTabStripEditable() const { | |
68 return false; | |
69 } | |
70 | |
71 bool TestBrowserWindow::IsToolbarVisible() const { | |
72 return false; | |
73 } | |
74 | |
75 void TestBrowserWindow::ShowAboutChromeDialog() { | |
76 return; | |
77 } | |
78 | |
79 bool TestBrowserWindow::IsDownloadShelfVisible() const { | |
80 return false; | |
81 } | |
82 | |
83 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { | |
84 return NULL; | |
85 } | |
86 | |
87 int TestBrowserWindow::GetExtraRenderViewHeight() const { | |
88 return 0; | |
89 } | |
90 | |
91 gfx::Rect TestBrowserWindow::GetInstantBounds() { | |
92 return gfx::Rect(); | |
93 } | |
94 | |
95 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | |
96 const gfx::Rect& bounds) { | |
97 return NEW_POPUP; | |
98 } | |
OLD | NEW |