Chromium Code Reviews

Side by Side Diff: chrome/test/base/test_browser_window.h

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
Patch Set: Update callers Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 16 matching lines...)
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() 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() 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 {}
43 gfx::NativeWindow GetNativeWindow() const override; 43 gfx::NativeWindow GetNativeWindow() const override;
44 StatusBubble* GetStatusBubble() override; 44 StatusBubble* GetStatusBubble() override;
45 void UpdateTitleBar() override {} 45 void UpdateTitleBar() override {}
46 void BookmarkBarStateChanged( 46 void BookmarkBarStateChanged(
47 BookmarkBar::AnimateChangeType change_type) override {} 47 BookmarkBar::AnimateChangeType change_type) override {}
(...skipping 144 matching lines...)
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_
OLDNEW

Powered by Google App Engine