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

Side by Side Diff: content/renderer/render_widget.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 5 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/renderer/render_thread_impl.cc ('k') | content/shell/browser/DEPS » ('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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 type == ui::TEXT_INPUT_TYPE_DATE_TIME || 193 type == ui::TEXT_INPUT_TYPE_DATE_TIME ||
194 type == ui::TEXT_INPUT_TYPE_DATE_TIME_LOCAL || 194 type == ui::TEXT_INPUT_TYPE_DATE_TIME_LOCAL ||
195 type == ui::TEXT_INPUT_TYPE_MONTH || 195 type == ui::TEXT_INPUT_TYPE_MONTH ||
196 type == ui::TEXT_INPUT_TYPE_TIME || type == ui::TEXT_INPUT_TYPE_WEEK; 196 type == ui::TEXT_INPUT_TYPE_TIME || type == ui::TEXT_INPUT_TYPE_WEEK;
197 } 197 }
198 198
199 content::RenderWidgetInputHandlerDelegate* GetRenderWidgetInputHandlerDelegate( 199 content::RenderWidgetInputHandlerDelegate* GetRenderWidgetInputHandlerDelegate(
200 content::RenderWidget* widget) { 200 content::RenderWidget* widget) {
201 #if defined(MOJO_SHELL_CLIENT) 201 #if defined(MOJO_SHELL_CLIENT)
202 const base::CommandLine& cmdline = *base::CommandLine::ForCurrentProcess(); 202 const base::CommandLine& cmdline = *base::CommandLine::ForCurrentProcess();
203 if (content::MojoShellConnection::GetForProcess() && 203 if (cmdline.HasSwitch(switches::kUseMusInRenderer)) {
204 cmdline.HasSwitch(switches::kUseMusInRenderer)) {
205 return content::RenderWidgetMusConnection::GetOrCreate( 204 return content::RenderWidgetMusConnection::GetOrCreate(
206 widget->routing_id()); 205 widget->routing_id());
207 } 206 }
208 #endif 207 #endif
209 // If we don't have a connection to the Mojo shell, then we want to route IPCs 208 // If we don't have a connection to the Mojo shell, then we want to route IPCs
210 // back to the browser process rather than Mus so we use the |widget| as the 209 // back to the browser process rather than Mus so we use the |widget| as the
211 // RenderWidgetInputHandlerDelegate. 210 // RenderWidgetInputHandlerDelegate.
212 return widget; 211 return widget;
213 } 212 }
214 213
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1983 void RenderWidget::requestPointerUnlock() { 1982 void RenderWidget::requestPointerUnlock() {
1984 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); 1983 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get());
1985 } 1984 }
1986 1985
1987 bool RenderWidget::isPointerLocked() { 1986 bool RenderWidget::isPointerLocked() {
1988 return mouse_lock_dispatcher_->IsMouseLockedTo( 1987 return mouse_lock_dispatcher_->IsMouseLockedTo(
1989 webwidget_mouse_lock_target_.get()); 1988 webwidget_mouse_lock_target_.get());
1990 } 1989 }
1991 1990
1992 } // namespace content 1991 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/shell/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698