Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

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

Issue 1158523002: Add user_gesture param to BaseWindow::Show Base URL: https://chromium.googlesource.com/chromium/src.git@ug3_BaseWindow_Activate
Patch Set: Update callers Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 11 matching lines...) Expand all
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
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
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698