diff options
Diffstat (limited to 'chrome/test/test_browser_window.cc')
| -rw-r--r-- | chrome/test/test_browser_window.cc | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/chrome/test/test_browser_window.cc b/chrome/test/test_browser_window.cc new file mode 100644 index 0000000..b76935d --- /dev/null +++ b/chrome/test/test_browser_window.cc @@ -0,0 +1,93 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/test/test_browser_window.h" + +#include "ui/gfx/rect.h" + +TestBrowserWindow::TestBrowserWindow(Browser* browser) {} + +TestBrowserWindow::~TestBrowserWindow() {} + +bool TestBrowserWindow::IsActive() const { + return false; +} + +gfx::NativeWindow TestBrowserWindow::GetNativeHandle() { + return NULL; +} + +BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { + return NULL; +} + +StatusBubble* TestBrowserWindow::GetStatusBubble() { + return NULL; +} + +gfx::Rect TestBrowserWindow::GetRestoredBounds() const { + return gfx::Rect(); +} + +gfx::Rect TestBrowserWindow::GetBounds() const { + return gfx::Rect(); +} + +bool TestBrowserWindow::IsMaximized() const { + return false; +} + +bool TestBrowserWindow::IsFullscreen() const { + return false; +} + +bool TestBrowserWindow::IsFullscreenBubbleVisible() const { + return false; +} + +LocationBar* TestBrowserWindow::GetLocationBar() const { + return const_cast<TestLocationBar*>(&location_bar_); +} + +bool TestBrowserWindow::PreHandleKeyboardEvent( + const NativeWebKeyboardEvent& event, + bool* is_keyboard_shortcut) { + return false; +} + +bool TestBrowserWindow::IsBookmarkBarVisible() const { + return false; +} + +bool TestBrowserWindow::IsBookmarkBarAnimating() const { + return false; +} + +bool TestBrowserWindow::IsTabStripEditable() const { + return false; +} + +bool TestBrowserWindow::IsToolbarVisible() const { + return false; +} + +views::Window* TestBrowserWindow::ShowAboutChromeDialog() { + return NULL; +} + +bool TestBrowserWindow::IsDownloadShelfVisible() const { + return false; +} + +DownloadShelf* TestBrowserWindow::GetDownloadShelf() { + return NULL; +} + +int TestBrowserWindow::GetExtraRenderViewHeight() const { + return 0; +} + +gfx::Rect TestBrowserWindow::GetInstantBounds() { + return gfx::Rect(); +} |
