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 | |
124 LocationBar* TestBrowserWindow::GetLocationBar() const { | 122 LocationBar* TestBrowserWindow::GetLocationBar() const { |
125 return const_cast<TestLocationBar*>(&location_bar_); | 123 return const_cast<TestLocationBar*>(&location_bar_); |
126 } | 124 } |
127 | 125 |
128 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { | 126 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { |
129 return nullptr; | 127 return nullptr; |
130 } | 128 } |
131 | 129 |
132 bool TestBrowserWindow::PreHandleKeyboardEvent( | 130 bool TestBrowserWindow::PreHandleKeyboardEvent( |
133 const content::NativeWebKeyboardEvent& event, | 131 const content::NativeWebKeyboardEvent& event, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 206 } |
209 | 207 |
210 TestBrowserWindowOwner::~TestBrowserWindowOwner() { | 208 TestBrowserWindowOwner::~TestBrowserWindowOwner() { |
211 BrowserList::RemoveObserver(this); | 209 BrowserList::RemoveObserver(this); |
212 } | 210 } |
213 | 211 |
214 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { | 212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { |
215 if (browser->window() == window_.get()) | 213 if (browser->window() == window_.get()) |
216 delete this; | 214 delete this; |
217 } | 215 } |
OLD | NEW |