| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool TestBrowserWindow::IsToolbarVisible() const { | 93 bool TestBrowserWindow::IsToolbarVisible() const { |
| 94 return false; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 gfx::Rect TestBrowserWindow::GetRootWindowResizerRect() const { | 97 gfx::Rect TestBrowserWindow::GetRootWindowResizerRect() const { |
| 98 return gfx::Rect(); | 98 return gfx::Rect(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool TestBrowserWindow::IsPanel() const { | |
| 102 return false; | |
| 103 } | |
| 104 | |
| 105 bool TestBrowserWindow::IsDownloadShelfVisible() const { | 101 bool TestBrowserWindow::IsDownloadShelfVisible() const { |
| 106 return false; | 102 return false; |
| 107 } | 103 } |
| 108 | 104 |
| 109 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { | 105 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { |
| 110 return &download_shelf_; | 106 return &download_shelf_; |
| 111 } | 107 } |
| 112 | 108 |
| 113 int TestBrowserWindow::GetExtraRenderViewHeight() const { | 109 int TestBrowserWindow::GetExtraRenderViewHeight() const { |
| 114 return 0; | 110 return 0; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } // namespace | 168 } // namespace |
| 173 | 169 |
| 174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { | 170 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { |
| 175 TestBrowserWindow* window = new TestBrowserWindow; | 171 TestBrowserWindow* window = new TestBrowserWindow; |
| 176 new TestBrowserWindowOwner(window); | 172 new TestBrowserWindowOwner(window); |
| 177 params->window = window; | 173 params->window = window; |
| 178 return new Browser(*params); | 174 return new Browser(*params); |
| 179 } | 175 } |
| 180 | 176 |
| 181 } // namespace chrome | 177 } // namespace chrome |
| OLD | NEW |