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

Side by Side Diff: athena/main/athena_main.cc

Issue 659233002: STASH: Epic Experimental patch for toolkit-views App List on Mac Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix a few things. Works@master Created 6 years, 2 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | base/mac/sdk_forward_declarations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698