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 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 23 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
24 // contains a valid LocationBar, all other getters return NULL. | 24 // contains a valid LocationBar, all other getters return NULL. |
25 // See BrowserWithTestWindowTest for an example of using this class. | 25 // See BrowserWithTestWindowTest for an example of using this class. |
26 class TestBrowserWindow : public BrowserWindow { | 26 class TestBrowserWindow : public BrowserWindow { |
27 public: | 27 public: |
28 TestBrowserWindow(); | 28 TestBrowserWindow(); |
29 ~TestBrowserWindow() override; | 29 ~TestBrowserWindow() override; |
30 | 30 |
31 // BrowserWindow: | 31 // BrowserWindow: |
32 void Show() override {} | 32 void Show(bool user_gesture) override {} |
33 void ShowInactive() override {} | 33 void ShowInactive() override {} |
34 void Hide() override {} | 34 void Hide() override {} |
35 void SetBounds(const gfx::Rect& bounds) override {} | 35 void SetBounds(const gfx::Rect& bounds) override {} |
36 void Close() override {} | 36 void Close() override {} |
37 void Activate(bool user_gesture) override {} | 37 void Activate(bool user_gesture) override {} |
38 void Deactivate() override {} | 38 void Deactivate() override {} |
39 bool IsActive() const override; | 39 bool IsActive() const override; |
40 void FlashFrame(bool flash) override {} | 40 void FlashFrame(bool flash) override {} |
41 bool IsAlwaysOnTop() const override; | 41 bool IsAlwaysOnTop() const override; |
42 void SetAlwaysOnTop(bool always_on_top) override {} | 42 void SetAlwaysOnTop(bool always_on_top) override {} |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 }; | 192 }; |
193 | 193 |
194 namespace chrome { | 194 namespace chrome { |
195 | 195 |
196 // Helper that handle the lifetime of TestBrowserWindow instances. | 196 // Helper that handle the lifetime of TestBrowserWindow instances. |
197 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 197 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
198 | 198 |
199 } // namespace chrome | 199 } // namespace chrome |
200 | 200 |
201 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 201 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |