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 |
55 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { | 61 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { |
56 return false; | 62 return false; |
57 } | 63 } |
58 | 64 |
59 LocationBar* TestBrowserWindow::GetLocationBar() const { | 65 LocationBar* TestBrowserWindow::GetLocationBar() const { |
60 return const_cast<TestLocationBar*>(&location_bar_); | 66 return const_cast<TestLocationBar*>(&location_bar_); |
61 } | 67 } |
62 | 68 |
63 bool TestBrowserWindow::PreHandleKeyboardEvent( | 69 bool TestBrowserWindow::PreHandleKeyboardEvent( |
64 const NativeWebKeyboardEvent& event, | 70 const NativeWebKeyboardEvent& event, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 123 } |
118 | 124 |
119 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | 125 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( |
120 const gfx::Rect& bounds) { | 126 const gfx::Rect& bounds) { |
121 return NEW_POPUP; | 127 return NEW_POPUP; |
122 } | 128 } |
123 | 129 |
124 FindBar* TestBrowserWindow::CreateFindBar() { | 130 FindBar* TestBrowserWindow::CreateFindBar() { |
125 return NULL; | 131 return NULL; |
126 } | 132 } |
OLD | NEW |