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

Side by Side Diff: extensions/browser/app_window/test_app_window_contents.h

Issue 696063008: Refactor ShellDesktopController and ShellNativeAppWindow to allow for non-aura implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: + Created 6 years, 1 month 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 2014 The Chromium Authors. All rights reserved.
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 EXTENSIONS_BROWSER_APP_WINDOW_TEST_APP_WINDOW_CONTENTS_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_TEST_APP_WINDOW_CONTENTS_
7
8 #include "base/macros.h"
9 #include "extensions/browser/app_window/app_window.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 namespace extensions {
16
17 // A dummy version of AppWindowContents for unit tests.
18 // Best used with AppWindow::SetAppWindowContentsForTesting().
19 class TestAppWindowContents : public AppWindowContents {
20 public:
21 explicit TestAppWindowContents(content::WebContents* web_contents);
22 ~TestAppWindowContents() override;
23
24 // apps:AppWindowContents:
25 void Initialize(content::BrowserContext* context, const GURL& url) override;
26 void LoadContents(int32 creator_process_id) override;
27 void NativeWindowChanged(NativeAppWindow* native_app_window) override;
28 void NativeWindowClosed() override;
29 void DispatchWindowShownForTests() const override;
30 content::WebContents* GetWebContents() const override;
31
32 private:
33 scoped_ptr<content::WebContents> web_contents_;
34
35 DISALLOW_COPY_AND_ASSIGN(TestAppWindowContents);
36 };
37
38 } // namespace extensions
39
40 #endif // EXTENSIONS_BROWSER_APP_WINDOW_TEST_APP_WINDOW_CONTENTS_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window.cc ('k') | extensions/browser/app_window/test_app_window_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698