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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed naming Created 3 years, 6 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 (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/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
11 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 11 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
12 #include "content/browser/renderer_host/render_process_host_impl.h" 12 #include "content/browser/renderer_host/render_process_host_impl.h"
13 #include "content/browser/renderer_host/render_widget_host_delegate.h" 13 #include "content/browser/renderer_host/render_widget_host_delegate.h"
14 #include "content/browser/renderer_host/render_widget_host_impl.h" 14 #include "content/browser/renderer_host/render_widget_host_impl.h"
15 #include "content/browser/renderer_host/render_widget_host_view_base_observer.h" 15 #include "content/browser/renderer_host/render_widget_host_view_base_observer.h"
16 #include "content/browser/renderer_host/render_widget_host_view_frame_subscriber .h" 16 #include "content/browser/renderer_host/render_widget_host_view_frame_subscriber .h"
17 #include "content/browser/renderer_host/text_input_manager.h" 17 #include "content/browser/renderer_host/text_input_manager.h"
18 #include "content/common/content_switches_internal.h" 18 #include "content/common/content_switches_internal.h"
19 #include "content/public/common/content_features.h" 19 #include "content/public/common/content_features.h"
20 #include "media/base/video_frame.h" 20 #include "media/base/video_frame.h"
21 #include "ui/base/layout.h" 21 #include "ui/base/layout.h"
22 #include "ui/base/ui_base_types.h"
22 #include "ui/display/screen.h" 23 #include "ui/display/screen.h"
23 #include "ui/gfx/geometry/point_conversions.h" 24 #include "ui/gfx/geometry/point_conversions.h"
24 #include "ui/gfx/geometry/size_conversions.h" 25 #include "ui/gfx/geometry/size_conversions.h"
25 #include "ui/gfx/geometry/size_f.h" 26 #include "ui/gfx/geometry/size_f.h"
26 27
27 namespace content { 28 namespace content {
28 29
29 namespace { 30 namespace {
30 31
31 } 32 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 NOTREACHED(); 212 NOTREACHED();
212 return NULL; 213 return NULL;
213 } 214 }
214 215
215 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) { 216 void RenderWidgetHostViewBase::AccessibilityShowMenu(const gfx::Point& point) {
216 RenderWidgetHostImpl* impl = NULL; 217 RenderWidgetHostImpl* impl = NULL;
217 if (GetRenderWidgetHost()) 218 if (GetRenderWidgetHost())
218 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); 219 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
219 220
220 if (impl) 221 if (impl)
221 impl->ShowContextMenuAtPoint(point); 222 impl->ShowContextMenuAtPoint(point, ui::MENU_SOURCE_NONE);
222 } 223 }
223 224
224 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen( 225 gfx::Point RenderWidgetHostViewBase::AccessibilityOriginInScreen(
225 const gfx::Rect& bounds) { 226 const gfx::Rect& bounds) {
226 return bounds.origin(); 227 return bounds.origin();
227 } 228 }
228 229
229 gfx::AcceleratedWidget 230 gfx::AcceleratedWidget
230 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() { 231 RenderWidgetHostViewBase::AccessibilityGetAcceleratedWidget() {
231 return gfx::kNullAcceleratedWidget; 232 return gfx::kNullAcceleratedWidget;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 489
489 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 490 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
490 return false; 491 return false;
491 } 492 }
492 493
493 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 494 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
494 return cc::SurfaceId(); 495 return cc::SurfaceId();
495 } 496 }
496 497
497 } // namespace content 498 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/browser/web_contents/web_contents_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698