| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "athena/activity/public/activity_factory.h" | 5 #include "athena/activity/public/activity_factory.h" |
| 6 #include "athena/activity/public/activity_manager.h" | 6 #include "athena/activity/public/activity_manager.h" |
| 7 #include "athena/content/public/web_contents_view_delegate_creator.h" | 7 #include "athena/content/public/web_contents_view_delegate_creator.h" |
| 8 #include "athena/env/public/athena_env.h" | 8 #include "athena/env/public/athena_env.h" |
| 9 #include "athena/extensions/public/extensions_delegate.h" | 9 #include "athena/extensions/public/extensions_delegate.h" |
| 10 #include "athena/main/athena_content_client.h" | 10 #include "athena/main/athena_content_client.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 class AthenaContentBrowserClient | 121 class AthenaContentBrowserClient |
| 122 : public extensions::ShellContentBrowserClient { | 122 : public extensions::ShellContentBrowserClient { |
| 123 public: | 123 public: |
| 124 AthenaContentBrowserClient() | 124 AthenaContentBrowserClient() |
| 125 : extensions::ShellContentBrowserClient(new AthenaBrowserMainDelegate()) { | 125 : extensions::ShellContentBrowserClient(new AthenaBrowserMainDelegate()) { |
| 126 } | 126 } |
| 127 virtual ~AthenaContentBrowserClient() {} | 127 virtual ~AthenaContentBrowserClient() {} |
| 128 | 128 |
| 129 // content::ContentBrowserClient: | 129 // content::ContentBrowserClient: |
| 130 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 130 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 131 content::WebContents* web_contents) override { | 131 content::WebContents* web_contents, gfx::NativeView context) override { |
| 132 return athena::CreateWebContentsViewDelegate(web_contents); | 132 return athena::CreateWebContentsViewDelegate(web_contents); |
| 133 } | 133 } |
| 134 | 134 |
| 135 private: | 135 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(AthenaContentBrowserClient); | 136 DISALLOW_COPY_AND_ASSIGN(AthenaContentBrowserClient); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 class AthenaContentRendererClient | 139 class AthenaContentRendererClient |
| 140 : public extensions::ShellContentRendererClient { | 140 : public extensions::ShellContentRendererClient { |
| 141 public: | 141 public: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 int main(int argc, const char** argv) { | 191 int main(int argc, const char** argv) { |
| 192 AthenaMainDelegate delegate; | 192 AthenaMainDelegate delegate; |
| 193 content::ContentMainParams params(&delegate); | 193 content::ContentMainParams params(&delegate); |
| 194 | 194 |
| 195 params.argc = argc; | 195 params.argc = argc; |
| 196 params.argv = argv; | 196 params.argv = argv; |
| 197 | 197 |
| 198 return content::ContentMain(params); | 198 return content::ContentMain(params); |
| 199 } | 199 } |
| OLD | NEW |