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 "ui/gfx/rect.h" | 7 #include "ui/gfx/rect.h" |
8 | 8 |
9 using content::NativeWebKeyboardEvent; | 9 using content::NativeWebKeyboardEvent; |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 bool TestBrowserWindow::IsMinimized() const { | 47 bool TestBrowserWindow::IsMinimized() const { |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
51 bool TestBrowserWindow::IsFullscreen() const { | 51 bool TestBrowserWindow::IsFullscreen() const { |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
55 #if defined(OS_WIN) | |
56 bool TestBrowserWindow::IsInMetroSnapMode() const { | |
57 return false; | |
58 } | |
59 #endif | |
60 | |
61 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { | 55 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { |
62 return false; | 56 return false; |
63 } | 57 } |
64 | 58 |
65 LocationBar* TestBrowserWindow::GetLocationBar() const { | 59 LocationBar* TestBrowserWindow::GetLocationBar() const { |
66 return const_cast<TestLocationBar*>(&location_bar_); | 60 return const_cast<TestLocationBar*>(&location_bar_); |
67 } | 61 } |
68 | 62 |
69 bool TestBrowserWindow::PreHandleKeyboardEvent( | 63 bool TestBrowserWindow::PreHandleKeyboardEvent( |
70 const NativeWebKeyboardEvent& event, | 64 const NativeWebKeyboardEvent& event, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 117 } |
124 | 118 |
125 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | 119 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( |
126 const gfx::Rect& bounds) { | 120 const gfx::Rect& bounds) { |
127 return NEW_POPUP; | 121 return NEW_POPUP; |
128 } | 122 } |
129 | 123 |
130 FindBar* TestBrowserWindow::CreateFindBar() { | 124 FindBar* TestBrowserWindow::CreateFindBar() { |
131 return NULL; | 125 return NULL; |
132 } | 126 } |
OLD | NEW |