| OLD | NEW |
| (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 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_ | |
| OLD | NEW |