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

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

Issue 2354283003: Disable direct routing of mouse events for RenderWidgetHostViewGuest (Closed)
Patch Set: Tweak Created 4 years, 3 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 virtual gfx::Point TransformPointToLocalCoordSpace( 261 virtual gfx::Point TransformPointToLocalCoordSpace(
262 const gfx::Point& point, 262 const gfx::Point& point,
263 const cc::SurfaceId& original_surface); 263 const cc::SurfaceId& original_surface);
264 264
265 // Transform a point that is in the coordinate space for the current 265 // Transform a point that is in the coordinate space for the current
266 // RenderWidgetHostView to the coordinate space of the target_view. 266 // RenderWidgetHostView to the coordinate space of the target_view.
267 virtual gfx::Point TransformPointToCoordSpaceForView( 267 virtual gfx::Point TransformPointToCoordSpaceForView(
268 const gfx::Point& point, 268 const gfx::Point& point,
269 RenderWidgetHostViewBase* target_view); 269 RenderWidgetHostViewBase* target_view);
270 270
271 // TODO(kenrb, wjmaclean): This is a temporary subclass identifier for
272 // RenderWidgetHostViewGuests that is needed for special treatment during
273 // input event routing. It can be removed either when RWHVGuests properly
274 // support direct mouse event routing, or when RWHVGuest is removed
275 // entirely, which comes first.
276 virtual bool IsRenderWidgetHostViewGuest();
277
271 //---------------------------------------------------------------------------- 278 //----------------------------------------------------------------------------
272 // The following methods are related to IME. 279 // The following methods are related to IME.
273 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME 280 // TODO(ekaramad): Most of the IME methods should not stay virtual after IME
274 // is implemented for OOPIF. After fixing IME, mark the corresponding methods 281 // is implemented for OOPIF. After fixing IME, mark the corresponding methods
275 // non-virtual (https://crbug.com/578168). 282 // non-virtual (https://crbug.com/578168).
276 283
277 // Updates the state of the input method attached to the view. 284 // Updates the state of the input method attached to the view.
278 virtual void TextInputStateChanged(const TextInputState& text_input_state); 285 virtual void TextInputStateChanged(const TextInputState& text_input_state);
279 286
280 // Cancel the ongoing composition of the input method attached to the view. 287 // Cancel the ongoing composition of the input method attached to the view.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 487 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
481 488
482 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 489 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
483 490
484 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 491 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
485 }; 492 };
486 493
487 } // namespace content 494 } // namespace content
488 495
489 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 496 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698