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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell/content_client/DEPS ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/content_client/shell_browser_main_parts.h
===================================================================
--- ash/shell/content_client/shell_browser_main_parts.h (revision 0)
+++ ash/shell/content_client/shell_browser_main_parts.h (revision 0)
@@ -0,0 +1,77 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
+#define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/public/browser/browser_main_parts.h"
+
+namespace base {
+class Thread;
+}
+
+namespace ui {
+class Clipboard;
+}
+
+namespace content {
+class ShellBrowserContext;
+class ShellDevToolsDelegate;
+struct MainFunctionParams;
+}
+
+namespace views {
+class ViewsDelegate;
+}
+
+namespace ash {
+namespace shell {
+
+class WindowWatcher;
+
+class ShellBrowserMainParts : public content::BrowserMainParts {
+ public:
+ explicit ShellBrowserMainParts(
+ const content::MainFunctionParams& parameters);
+ virtual ~ShellBrowserMainParts();
+
+ // Overridden from content::BrowserMainParts:
+ virtual void PreEarlyInitialization() OVERRIDE {}
+ virtual void PostEarlyInitialization() OVERRIDE {}
+ virtual void PreMainMessageLoopStart() OVERRIDE;
+ virtual void PostMainMessageLoopStart() OVERRIDE {}
+ virtual void ToolkitInitialized() OVERRIDE {}
+ virtual int PreCreateThreads() OVERRIDE;
+ virtual void PreMainMessageLoopRun() OVERRIDE;
+ virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
+ virtual void PostMainMessageLoopRun() OVERRIDE;
+ virtual void PostDestroyThreads() OVERRIDE {}
+
+ ui::Clipboard* GetClipboard();
+ content::ShellDevToolsDelegate* devtools_delegate() {
+ return devtools_delegate_;
+ }
+
+ content::ShellBrowserContext* browser_context() {
+ return browser_context_.get();
+ }
+
+ private:
+ scoped_ptr<content::ShellBrowserContext> browser_context_;
+
+ scoped_ptr<ui::Clipboard> clipboard_;
+ content::ShellDevToolsDelegate* devtools_delegate_;
+ scoped_ptr<views::ViewsDelegate> views_delegate_;
+ scoped_ptr<ash::shell::WindowWatcher> window_watcher_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
+};
+
+} // namespace shell
+} // namespace ash
+
+#endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
Property changes on: ash\shell\content_client\shell_browser_main_parts.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ash/shell/content_client/DEPS ('k') | ash/shell/content_client/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698