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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2208613002: Remove MOJO_SHELL_CLIENT define. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #include "content/browser/android/content_video_view.h" 136 #include "content/browser/android/content_video_view.h"
137 #include "content/browser/android/date_time_chooser_android.h" 137 #include "content/browser/android/date_time_chooser_android.h"
138 #include "content/browser/media/android/media_web_contents_observer_android.h" 138 #include "content/browser/media/android/media_web_contents_observer_android.h"
139 #include "content/browser/web_contents/web_contents_android.h" 139 #include "content/browser/web_contents/web_contents_android.h"
140 #endif // OS_ANDROID 140 #endif // OS_ANDROID
141 141
142 #if defined(OS_MACOSX) 142 #if defined(OS_MACOSX)
143 #include "base/mac/foundation_util.h" 143 #include "base/mac/foundation_util.h"
144 #endif 144 #endif
145 145
146 #if defined(MOJO_SHELL_CLIENT) 146 #if defined(USE_AURA)
147 #include "content/browser/web_contents/web_contents_view_mus.h" 147 #include "content/browser/web_contents/web_contents_view_mus.h"
148 #include "content/public/common/mojo_shell_connection.h" 148 #include "content/public/common/mojo_shell_connection.h"
149 #include "ui/aura/mus/mus_util.h" 149 #include "ui/aura/mus/mus_util.h"
150 #endif 150 #endif
151 151
152 #if defined(ENABLE_PLUGINS) 152 #if defined(ENABLE_PLUGINS)
153 #include "content/browser/media/session/pepper_playback_observer.h" 153 #include "content/browser/media/session/pepper_playback_observer.h"
154 #endif // ENABLE_PLUGINS 154 #endif // ENABLE_PLUGINS
155 155
156 namespace content { 156 namespace content {
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 main_frame_widget_routing_id); 1538 main_frame_widget_routing_id);
1539 1539
1540 // blink::FrameTree::setName uses |name| as the |unique_name| for the main 1540 // blink::FrameTree::setName uses |name| as the |unique_name| for the main
1541 // frame - let's do the same thing here. 1541 // frame - let's do the same thing here.
1542 std::string unique_name = params.main_frame_name; 1542 std::string unique_name = params.main_frame_name;
1543 frame_tree_.root()->SetFrameName(params.main_frame_name, unique_name); 1543 frame_tree_.root()->SetFrameName(params.main_frame_name, unique_name);
1544 1544
1545 WebContentsViewDelegate* delegate = 1545 WebContentsViewDelegate* delegate =
1546 GetContentClient()->browser()->GetWebContentsViewDelegate(this); 1546 GetContentClient()->browser()->GetWebContentsViewDelegate(this);
1547 1547
1548 #if defined(MOJO_SHELL_CLIENT) 1548 #if defined(USE_AURA)
1549 if (MojoShellConnection::GetForProcess() && 1549 if (MojoShellConnection::GetForProcess() &&
1550 base::CommandLine::ForCurrentProcess()->HasSwitch( 1550 base::CommandLine::ForCurrentProcess()->HasSwitch(
1551 switches::kUseMusInRenderer)) { 1551 switches::kUseMusInRenderer)) {
1552 ui::Window* mus_window = aura::GetMusWindow(params.context); 1552 ui::Window* mus_window = aura::GetMusWindow(params.context);
1553 if (mus_window) { 1553 if (mus_window) {
1554 view_.reset(new WebContentsViewMus(mus_window, this, delegate, 1554 view_.reset(new WebContentsViewMus(mus_window, this, delegate,
1555 &render_view_host_delegate_view_)); 1555 &render_view_host_delegate_view_));
1556 } 1556 }
1557 } 1557 }
1558 #endif 1558 #endif
(...skipping 3673 matching lines...) Expand 10 before | Expand all | Expand 10 after
5232 for (RenderViewHost* render_view_host : render_view_host_set) 5232 for (RenderViewHost* render_view_host : render_view_host_set)
5233 render_view_host->OnWebkitPreferencesChanged(); 5233 render_view_host->OnWebkitPreferencesChanged();
5234 } 5234 }
5235 5235
5236 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5236 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5237 JavaScriptDialogManager* dialog_manager) { 5237 JavaScriptDialogManager* dialog_manager) {
5238 dialog_manager_ = dialog_manager; 5238 dialog_manager_ = dialog_manager;
5239 } 5239 }
5240 5240
5241 } // namespace content 5241 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698