| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace examples { | 24 namespace examples { |
| 25 | 25 |
| 26 class ExamplesBrowserMainParts : public content::BrowserMainParts { | 26 class ExamplesBrowserMainParts : public content::BrowserMainParts { |
| 27 public: | 27 public: |
| 28 explicit ExamplesBrowserMainParts( | 28 explicit ExamplesBrowserMainParts( |
| 29 const content::MainFunctionParams& parameters); | 29 const content::MainFunctionParams& parameters); |
| 30 virtual ~ExamplesBrowserMainParts(); | 30 virtual ~ExamplesBrowserMainParts(); |
| 31 | 31 |
| 32 // Overridden from content::BrowserMainParts: | 32 // Overridden from content::BrowserMainParts: |
| 33 virtual void ToolkitInitialized() OVERRIDE; |
| 33 virtual void PreMainMessageLoopRun() OVERRIDE; | 34 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 34 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 35 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
| 35 virtual void PostMainMessageLoopRun() OVERRIDE; | 36 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 36 | 37 |
| 37 content::ShellBrowserContext* browser_context() { | 38 content::ShellBrowserContext* browser_context() { |
| 38 return browser_context_.get(); | 39 return browser_context_.get(); |
| 39 } | 40 } |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 scoped_ptr<content::ShellBrowserContext> browser_context_; | 43 scoped_ptr<content::ShellBrowserContext> browser_context_; |
| 43 | 44 |
| 44 scoped_ptr<ViewsDelegate> views_delegate_; | 45 scoped_ptr<ViewsDelegate> views_delegate_; |
| 45 | 46 |
| 46 #if defined(OS_CHROMEOS) | 47 #if defined(OS_CHROMEOS) |
| 47 // Enable a minimal set of views::corewm to be initialized. | 48 // Enable a minimal set of views::corewm to be initialized. |
| 48 scoped_ptr<wm::WMTestHelper> wm_test_helper_; | 49 scoped_ptr<wm::WMTestHelper> wm_test_helper_; |
| 49 #endif | 50 #endif |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts); | 52 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace examples | 55 } // namespace examples |
| 55 } // namespace views | 56 } // namespace views |
| 56 | 57 |
| 57 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 58 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |