| 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 "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
| 8 #include "chrome/browser/ui/browser_list_observer.h" | 8 #include "chrome/browser/ui/browser_list_observer.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 WindowOpenDisposition | 59 WindowOpenDisposition |
| 60 TestBrowserWindow::TestLocationBar::GetWindowOpenDisposition() const { | 60 TestBrowserWindow::TestLocationBar::GetWindowOpenDisposition() const { |
| 61 return CURRENT_TAB; | 61 return CURRENT_TAB; |
| 62 } | 62 } |
| 63 | 63 |
| 64 content::PageTransition | 64 content::PageTransition |
| 65 TestBrowserWindow::TestLocationBar::GetPageTransition() const { | 65 TestBrowserWindow::TestLocationBar::GetPageTransition() const { |
| 66 return content::PAGE_TRANSITION_LINK; | 66 return content::PAGE_TRANSITION_LINK; |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool TestBrowserWindow::TestLocationBar::ShowPageActionPopup( |
| 70 const extensions::Extension* extension, bool grant_active_tab) { |
| 71 return false; |
| 72 } |
| 73 |
| 69 const OmniboxView* TestBrowserWindow::TestLocationBar::GetOmniboxView() const { | 74 const OmniboxView* TestBrowserWindow::TestLocationBar::GetOmniboxView() const { |
| 70 return NULL; | 75 return NULL; |
| 71 } | 76 } |
| 72 | 77 |
| 73 OmniboxView* TestBrowserWindow::TestLocationBar::GetOmniboxView() { | 78 OmniboxView* TestBrowserWindow::TestLocationBar::GetOmniboxView() { |
| 74 return NULL; | 79 return NULL; |
| 75 } | 80 } |
| 76 | 81 |
| 77 LocationBarTesting* | 82 LocationBarTesting* |
| 78 TestBrowserWindow::TestLocationBar::GetLocationBarForTesting() { | 83 TestBrowserWindow::TestLocationBar::GetLocationBarForTesting() { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 216 } |
| 212 | 217 |
| 213 int | 218 int |
| 214 TestBrowserWindow::GetRenderViewHeightInsetWithDetachedBookmarkBar() { | 219 TestBrowserWindow::GetRenderViewHeightInsetWithDetachedBookmarkBar() { |
| 215 return 0; | 220 return 0; |
| 216 } | 221 } |
| 217 | 222 |
| 218 void TestBrowserWindow::ExecuteExtensionCommand( | 223 void TestBrowserWindow::ExecuteExtensionCommand( |
| 219 const extensions::Extension* extension, | 224 const extensions::Extension* extension, |
| 220 const extensions::Command& command) {} | 225 const extensions::Command& command) {} |
| 221 | |
| 222 void TestBrowserWindow::ShowPageActionPopup( | |
| 223 const extensions::Extension* extension) {} | |
| 224 | |
| 225 void TestBrowserWindow::ShowBrowserActionPopup( | |
| 226 const extensions::Extension* extension) {} | |
| OLD | NEW |