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

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

Issue 1198313003: Fix the browser match rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move TestBrowserWindowAura into its own .h .cc files Created 5 years, 5 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
sky 2015/07/21 23:40:01 nit: no (c)
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_
6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_
7
8 #include "chrome/test/base/test_browser_window.h"
9 #include "ui/aura/window.h"
10
11 // A browser window proxy with an associated Aura native window.
12 class TestBrowserWindowAura : public TestBrowserWindow {
13 public:
14 explicit TestBrowserWindowAura(scoped_ptr<aura::Window> native_window);
15 ~TestBrowserWindowAura() override;
16
17 // TestBrowserWindow overrides:
18 gfx::NativeWindow GetNativeWindow() const override;
19 void Show() override;
20 void Hide() override;
21 gfx::Rect GetBounds() const override;
22
23 scoped_ptr<Browser> CreateBrowser(Browser::CreateParams* params);
24
25 private:
26 Browser* browser_; // not owned
27 scoped_ptr<aura::Window> native_window_;
28
29 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindowAura);
30 };
31
32 namespace chrome {
33
34 // Helper that creates a browser with a native Aura |window|. If |window| is
35 // nullptr, it will create an Aura window to associate with the browser. It also
36 // handles the lifetime of TestBrowserWindowAura.
37 scoped_ptr<Browser> CreateBrowserWithAuraTestWindowForParams(
38 scoped_ptr<aura::Window> window,
39 Browser::CreateParams* params);
40
41 } // namespace chrome
42
43 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698