| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 gfx::Rect TestBrowserWindow::GetInstantBounds() { | 119 gfx::Rect TestBrowserWindow::GetInstantBounds() { |
| 120 return gfx::Rect(); | 120 return gfx::Rect(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | 123 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( |
| 124 const gfx::Rect& bounds) { | 124 const gfx::Rect& bounds) { |
| 125 return NEW_POPUP; | 125 return NEW_POPUP; |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool TestBrowserWindow::IsInstantTabShowing() { |
| 129 return false; |
| 130 } |
| 131 |
| 128 FindBar* TestBrowserWindow::CreateFindBar() { | 132 FindBar* TestBrowserWindow::CreateFindBar() { |
| 129 return NULL; | 133 return NULL; |
| 130 } | 134 } |
| 131 | 135 |
| 132 namespace chrome { | 136 namespace chrome { |
| 133 | 137 |
| 134 namespace { | 138 namespace { |
| 135 | 139 |
| 136 // Handles destroying a TestBrowserWindow when the Browser it is attached to is | 140 // Handles destroying a TestBrowserWindow when the Browser it is attached to is |
| 137 // destroyed. | 141 // destroyed. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 164 } | 168 } |
| 165 | 169 |
| 166 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { | 170 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { |
| 167 TestBrowserWindow* window = new TestBrowserWindow; | 171 TestBrowserWindow* window = new TestBrowserWindow; |
| 168 new TestBrowserWindowOwner(window); | 172 new TestBrowserWindowOwner(window); |
| 169 params->window = window; | 173 params->window = window; |
| 170 return new Browser(*params); | 174 return new Browser(*params); |
| 171 } | 175 } |
| 172 | 176 |
| 173 } // namespace chrome | 177 } // namespace chrome |
| OLD | NEW |