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

Side by Side Diff: ui/views/examples/content_client/examples_browser_main_parts.h

Issue 284113011: Repurpose views+content example into a generic multiprocess views runtime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for horrible copyright header change in revert CL Created 6 years, 6 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 | Annotate | Revision Log
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 UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/browser_main_parts.h"
11
12 namespace content {
13 class ShellBrowserContext;
14 struct MainFunctionParams;
15 }
16
17 namespace wm {
18 class WMState;
19 class WMTestHelper;
20 }
21
22 namespace views {
23 class ViewsDelegate;
24
25 namespace examples {
26
27 class ExamplesBrowserMainParts : public content::BrowserMainParts {
28 public:
29 explicit ExamplesBrowserMainParts(
30 const content::MainFunctionParams& parameters);
31 virtual ~ExamplesBrowserMainParts();
32
33 // content::BrowserMainParts:
34 virtual void ToolkitInitialized() OVERRIDE;
35 virtual void PreMainMessageLoopRun() OVERRIDE;
36 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
37 virtual void PostMainMessageLoopRun() OVERRIDE;
38
39 content::ShellBrowserContext* browser_context() {
40 return browser_context_.get();
41 }
42
43 private:
44 scoped_ptr<content::ShellBrowserContext> browser_context_;
45
46 scoped_ptr<ViewsDelegate> views_delegate_;
47
48 #if defined(OS_CHROMEOS)
49 // Enable a minimal set of views::corewm to be initialized.
50 scoped_ptr<wm::WMTestHelper> wm_test_helper_;
51 #endif
52
53 scoped_ptr<wm::WMState> wm_state_;
54
55 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts);
56 };
57
58 } // namespace examples
59 } // namespace views
60
61 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « ui/views/examples/content_client/DEPS ('k') | ui/views/examples/content_client/examples_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698