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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/browser/ui/browser_list.h" | 9 #include "chrome/browser/ui/browser_list.h" |
10 #include "chrome/browser/ui/browser_list_observer.h" | 10 #include "chrome/browser/ui/browser_list_observer.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 bool TestBrowserWindow::IsFullscreen() const { | 114 bool TestBrowserWindow::IsFullscreen() const { |
115 return false; | 115 return false; |
116 } | 116 } |
117 | 117 |
118 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { | 118 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { |
119 return false; | 119 return false; |
120 } | 120 } |
121 | 121 |
| 122 void TestBrowserWindow::ShowNewBackShortcutBubble(bool forward) {} |
| 123 |
122 LocationBar* TestBrowserWindow::GetLocationBar() const { | 124 LocationBar* TestBrowserWindow::GetLocationBar() const { |
123 return const_cast<TestLocationBar*>(&location_bar_); | 125 return const_cast<TestLocationBar*>(&location_bar_); |
124 } | 126 } |
125 | 127 |
126 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { | 128 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { |
127 return nullptr; | 129 return nullptr; |
128 } | 130 } |
129 | 131 |
130 bool TestBrowserWindow::PreHandleKeyboardEvent( | 132 bool TestBrowserWindow::PreHandleKeyboardEvent( |
131 const content::NativeWebKeyboardEvent& event, | 133 const content::NativeWebKeyboardEvent& event, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 208 } |
207 | 209 |
208 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 210 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
209 BrowserList::RemoveObserver(this); | 211 BrowserList::RemoveObserver(this); |
210 } | 212 } |
211 | 213 |
212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 214 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
213 if (browser->window() == window_.get()) | 215 if (browser->window() == window_.get()) |
214 delete this; | 216 delete this; |
215 } | 217 } |
OLD | NEW |