OLD | NEW |
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 UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
11 | 11 |
12 namespace aura { | 12 namespace aura { |
13 namespace client { | 13 namespace client { |
14 class StackingClient; | 14 class StackingClient; |
15 } | 15 } |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | |
20 class ShellBrowserContext; | 19 class ShellBrowserContext; |
21 struct MainFunctionParams; | 20 struct MainFunctionParams; |
22 } | 21 } |
23 | 22 |
24 namespace views { | 23 namespace views { |
25 class ViewsDelegate; | 24 class ViewsDelegate; |
| 25 |
26 namespace examples { | 26 namespace examples { |
27 | 27 |
28 class ExamplesBrowserMainParts : public content::BrowserMainParts { | 28 class ExamplesBrowserMainParts : public content::BrowserMainParts { |
29 public: | 29 public: |
30 explicit ExamplesBrowserMainParts( | 30 explicit ExamplesBrowserMainParts( |
31 const content::MainFunctionParams& parameters); | 31 const content::MainFunctionParams& parameters); |
32 virtual ~ExamplesBrowserMainParts(); | 32 virtual ~ExamplesBrowserMainParts(); |
33 | 33 |
34 // Overridden from content::BrowserMainParts: | 34 // Overridden from content::BrowserMainParts: |
35 virtual void PreMainMessageLoopRun() OVERRIDE; | 35 virtual void PreMainMessageLoopRun() OVERRIDE; |
36 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 36 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
37 virtual void PostMainMessageLoopRun() OVERRIDE; | 37 virtual void PostMainMessageLoopRun() OVERRIDE; |
38 | 38 |
39 content::ShellBrowserContext* browser_context() { | 39 content::ShellBrowserContext* browser_context() { |
40 return browser_context_.get(); | 40 return browser_context_.get(); |
41 } | 41 } |
42 | 42 |
43 private: | 43 private: |
44 scoped_ptr<content::ShellBrowserContext> browser_context_; | 44 scoped_ptr<content::ShellBrowserContext> browser_context_; |
45 | 45 |
46 scoped_ptr<views::ViewsDelegate> views_delegate_; | 46 scoped_ptr<ViewsDelegate> views_delegate_; |
47 #if defined(USE_AURA) | 47 #if defined(USE_AURA) |
48 scoped_ptr<aura::client::StackingClient> stacking_client_; | 48 scoped_ptr<aura::client::StackingClient> stacking_client_; |
49 #endif | 49 #endif |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts); | 51 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace examples | 54 } // namespace examples |
55 } // namespace views | 55 } // namespace views |
56 | 56 |
57 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 57 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |