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

Side by Side Diff: ash/shell/content_client/shell_browser_main_parts.h

Issue 10054038: Support WebView in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_main_parts.h"
12
13 namespace base {
14 class Thread;
15 }
16
17 namespace ui {
18 class Clipboard;
19 }
20
21 namespace content {
22 class ShellBrowserContext;
23 class ShellDevToolsDelegate;
24 struct MainFunctionParams;
25 }
26
27 namespace views {
28 class ViewsDelegate;
29 }
30
31 namespace ash {
32 namespace shell {
33
34 class WindowWatcher;
35
36 class ShellBrowserMainParts : public content::BrowserMainParts {
37 public:
38 explicit ShellBrowserMainParts(
39 const content::MainFunctionParams& parameters);
40 virtual ~ShellBrowserMainParts();
41
42 // Overridden from content::BrowserMainParts:
43 virtual void PreEarlyInitialization() OVERRIDE {}
44 virtual void PostEarlyInitialization() OVERRIDE {}
45 virtual void PreMainMessageLoopStart() OVERRIDE;
46 virtual void PostMainMessageLoopStart() OVERRIDE {}
47 virtual void ToolkitInitialized() OVERRIDE {}
48 virtual int PreCreateThreads() OVERRIDE;
49 virtual void PreMainMessageLoopRun() OVERRIDE;
50 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
51 virtual void PostMainMessageLoopRun() OVERRIDE;
52 virtual void PostDestroyThreads() OVERRIDE {}
53
54 ui::Clipboard* GetClipboard();
55 content::ShellDevToolsDelegate* devtools_delegate() {
56 return devtools_delegate_;
57 }
58
59 content::ShellBrowserContext* browser_context() {
60 return browser_context_.get();
61 }
62
63 private:
64 scoped_ptr<content::ShellBrowserContext> browser_context_;
65
66 scoped_ptr<ui::Clipboard> clipboard_;
67 content::ShellDevToolsDelegate* devtools_delegate_;
68 scoped_ptr<views::ViewsDelegate> views_delegate_;
69 scoped_ptr<ash::shell::WindowWatcher> window_watcher_;
70 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
sky 2012/04/12 19:14:54 nit: newline between 69/70.
71 };
72
73 } // namespace shell
74 } // namespace ash
75
76 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698