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

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

Issue 1412923009: Route touch-events for WebViewGuest directly to guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Experiment: run on bots without DCHECK. Created 5 years, 1 month 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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void ClearCompositorFrame() override; 184 void ClearCompositorFrame() override;
185 void DidStopFlinging() override; 185 void DidStopFlinging() override;
186 void OnDidNavigateMainFrameToNewPage() override; 186 void OnDidNavigateMainFrameToNewPage() override;
187 void LockCompositingSurface() override; 187 void LockCompositingSurface() override;
188 void UnlockCompositingSurface() override; 188 void UnlockCompositingSurface() override;
189 uint32_t GetSurfaceIdNamespace() override; 189 uint32_t GetSurfaceIdNamespace() override;
190 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, 190 uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
191 gfx::Point* transformed_point) override; 191 gfx::Point* transformed_point) override;
192 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; 192 void ProcessMouseEvent(const blink::WebMouseEvent& event) override;
193 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; 193 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override;
194 void ProcessTouchEvent(const blink::WebTouchEvent& event,
195 const ui::LatencyInfo& latency) override;
194 196
195 #if defined(OS_WIN) 197 #if defined(OS_WIN)
196 void SetParentNativeViewAccessible( 198 void SetParentNativeViewAccessible(
197 gfx::NativeViewAccessible accessible_parent) override; 199 gfx::NativeViewAccessible accessible_parent) override;
198 gfx::NativeViewId GetParentForWindowlessPlugin() const override; 200 gfx::NativeViewId GetParentForWindowlessPlugin() const override;
199 #endif 201 #endif
200 202
201 // Overridden from ui::TextInputClient: 203 // Overridden from ui::TextInputClient:
202 void SetCompositionText(const ui::CompositionText& composition) override; 204 void SetCompositionText(const ui::CompositionText& composition) override;
203 void ConfirmCompositionText() override; 205 void ConfirmCompositionText() override;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // Performs gesture handling needed for touch text selection. Sets event as 500 // Performs gesture handling needed for touch text selection. Sets event as
499 // handled if it should not be further processed. 501 // handled if it should not be further processed.
500 void HandleGestureForTouchSelection(ui::GestureEvent* event); 502 void HandleGestureForTouchSelection(ui::GestureEvent* event);
501 503
502 // The model object. 504 // The model object.
503 RenderWidgetHostImpl* const host_; 505 RenderWidgetHostImpl* const host_;
504 506
505 aura::Window* window_; 507 aura::Window* window_;
506 508
507 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; 509 scoped_ptr<DelegatedFrameHost> delegated_frame_host_;
510 bool has_started_rendering_;
508 511
509 scoped_ptr<WindowObserver> window_observer_; 512 scoped_ptr<WindowObserver> window_observer_;
510 513
511 // Tracks the ancestors of the RWHVA window for window location changes. 514 // Tracks the ancestors of the RWHVA window for window location changes.
512 scoped_ptr<WindowAncestorObserver> ancestor_window_observer_; 515 scoped_ptr<WindowAncestorObserver> ancestor_window_observer_;
513 516
514 // Are we in the process of closing? Tracked so fullscreen views can avoid 517 // Are we in the process of closing? Tracked so fullscreen views can avoid
515 // sending a second shutdown request to the host when they lose the focus 518 // sending a second shutdown request to the host when they lose the focus
516 // after requesting shutdown for another reason (e.g. Escape key). 519 // after requesting shutdown for another reason (e.g. Escape key).
517 bool in_shutdown_; 520 bool in_shutdown_;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 bool set_focus_on_mouse_down_; 671 bool set_focus_on_mouse_down_;
669 672
670 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 673 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
671 674
672 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
673 }; 676 };
674 677
675 } // namespace content 678 } // namespace content
676 679
677 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698