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

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

Issue 10443091: Make BrowserMainParts have an empty implementation to make embedding easier. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 class ViewsDelegate; 26 class ViewsDelegate;
27 namespace examples { 27 namespace examples {
28 28
29 class ExamplesBrowserMainParts : public content::BrowserMainParts { 29 class ExamplesBrowserMainParts : public content::BrowserMainParts {
30 public: 30 public:
31 explicit ExamplesBrowserMainParts( 31 explicit ExamplesBrowserMainParts(
32 const content::MainFunctionParams& parameters); 32 const content::MainFunctionParams& parameters);
33 virtual ~ExamplesBrowserMainParts(); 33 virtual ~ExamplesBrowserMainParts();
34 34
35 // Overridden from content::BrowserMainParts: 35 // Overridden from content::BrowserMainParts:
36 virtual void PreEarlyInitialization() OVERRIDE {}
37 virtual void PostEarlyInitialization() OVERRIDE {}
38 virtual void PreMainMessageLoopStart() OVERRIDE;
39 virtual void PostMainMessageLoopStart() OVERRIDE {}
40 virtual void ToolkitInitialized() OVERRIDE {}
41 virtual int PreCreateThreads() OVERRIDE;
42 virtual void PreMainMessageLoopRun() OVERRIDE; 36 virtual void PreMainMessageLoopRun() OVERRIDE;
43 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 37 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
44 virtual void PostMainMessageLoopRun() OVERRIDE; 38 virtual void PostMainMessageLoopRun() OVERRIDE;
45 virtual void PostDestroyThreads() OVERRIDE {}
46 39
47 content::ShellBrowserContext* browser_context() { 40 content::ShellBrowserContext* browser_context() {
48 return browser_context_.get(); 41 return browser_context_.get();
49 } 42 }
50 43
51 private: 44 private:
52 scoped_ptr<content::ShellBrowserContext> browser_context_; 45 scoped_ptr<content::ShellBrowserContext> browser_context_;
53 46
54 scoped_ptr<views::ViewsDelegate> views_delegate_; 47 scoped_ptr<views::ViewsDelegate> views_delegate_;
55 #if defined(USE_AURA) 48 #if defined(USE_AURA)
56 scoped_ptr<aura::client::StackingClient> stacking_client_; 49 scoped_ptr<aura::client::StackingClient> stacking_client_;
57 #endif 50 #endif
58 51
59 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts); 52 DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts);
60 }; 53 };
61 54
62 } // namespace examples 55 } // namespace examples
63 } // namespace views 56 } // namespace views
64 57
65 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ 58 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('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