| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
| 6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | |
| 10 | |
| 11 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 12 #include "chrome/test/test_location_bar.h" | 10 #include "chrome/test/test_location_bar.h" |
| 13 | 11 |
| 14 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 12 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
| 15 // contains a valid LocationBar, all other getters return NULL. | 13 // contains a valid LocationBar, all other getters return NULL. |
| 16 // See BrowserWithTestWindowTest for an example of using this class. | 14 // See BrowserWithTestWindowTest for an example of using this class. |
| 17 class TestBrowserWindow : public BrowserWindow { | 15 class TestBrowserWindow : public BrowserWindow { |
| 18 public: | 16 public: |
| 19 explicit TestBrowserWindow(Browser* browser) {} | 17 explicit TestBrowserWindow(Browser* browser) {} |
| 20 virtual ~TestBrowserWindow() {} | 18 virtual ~TestBrowserWindow() {} |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual void Cut() {} | 102 virtual void Cut() {} |
| 105 virtual void Copy() {} | 103 virtual void Copy() {} |
| 106 virtual void Paste() {} | 104 virtual void Paste() {} |
| 107 virtual void ToggleTabStripMode() {} | 105 virtual void ToggleTabStripMode() {} |
| 108 virtual void OpenTabpose() {} | 106 virtual void OpenTabpose() {} |
| 109 virtual void PrepareForInstant() {} | 107 virtual void PrepareForInstant() {} |
| 110 virtual void ShowInstant(TabContents* preview_contents) {} | 108 virtual void ShowInstant(TabContents* preview_contents) {} |
| 111 virtual void HideInstant(bool instant_is_active) {} | 109 virtual void HideInstant(bool instant_is_active) {} |
| 112 virtual gfx::Rect GetInstantBounds() { return gfx::Rect(); } | 110 virtual gfx::Rect GetInstantBounds() { return gfx::Rect(); } |
| 113 | 111 |
| 114 virtual gfx::Rect GrabWindowSnapshot(std::vector<unsigned char>* | |
| 115 png_representation) { | |
| 116 return gfx::Rect(); | |
| 117 } | |
| 118 | |
| 119 #if defined(OS_CHROMEOS) | 112 #if defined(OS_CHROMEOS) |
| 120 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) {} | 113 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) {} |
| 121 #endif | 114 #endif |
| 122 | 115 |
| 123 protected: | 116 protected: |
| 124 virtual void DestroyBrowser() {} | 117 virtual void DestroyBrowser() {} |
| 125 | 118 |
| 126 private: | 119 private: |
| 127 TestLocationBar location_bar_; | 120 TestLocationBar location_bar_; |
| 128 | 121 |
| 129 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 122 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
| 130 }; | 123 }; |
| 131 | 124 |
| 132 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 125 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |