| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { | 105 DownloadShelf* TestBrowserWindow::GetDownloadShelf() { |
| 106 return &download_shelf_; | 106 return &download_shelf_; |
| 107 } | 107 } |
| 108 | 108 |
| 109 int TestBrowserWindow::GetExtraRenderViewHeight() const { | 109 int TestBrowserWindow::GetExtraRenderViewHeight() const { |
| 110 return 0; | 110 return 0; |
| 111 } | 111 } |
| 112 | 112 |
| 113 #if defined(OS_MACOSX) | 113 #if defined(OS_MACOSX) |
| 114 bool TestBrowserWindow::InPresentationMode() { | 114 bool TestBrowserWindow::IsFullscreenWithChrome() { |
| 115 return false; |
| 116 } |
| 117 |
| 118 bool TestBrowserWindow::IsFullscreenWithoutChrome() { |
| 115 return false; | 119 return false; |
| 116 } | 120 } |
| 117 #endif | 121 #endif |
| 118 | 122 |
| 119 gfx::Rect TestBrowserWindow::GetInstantBounds() { | 123 gfx::Rect TestBrowserWindow::GetInstantBounds() { |
| 120 return gfx::Rect(); | 124 return gfx::Rect(); |
| 121 } | 125 } |
| 122 | 126 |
| 123 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( | 127 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( |
| 124 const gfx::Rect& bounds) { | 128 const gfx::Rect& bounds) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 172 } |
| 169 | 173 |
| 170 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { | 174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { |
| 171 TestBrowserWindow* window = new TestBrowserWindow; | 175 TestBrowserWindow* window = new TestBrowserWindow; |
| 172 new TestBrowserWindowOwner(window); | 176 new TestBrowserWindowOwner(window); |
| 173 params->window = window; | 177 params->window = window; |
| 174 return new Browser(*params); | 178 return new Browser(*params); |
| 175 } | 179 } |
| 176 | 180 |
| 177 } // namespace chrome | 181 } // namespace chrome |
| OLD | NEW |