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

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

Issue 1203223002: [Experimental, WIP] Demo version of extracting WebView selection data from CompositorFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 #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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Create a BrowserAccessibilityManager for this view. 149 // Create a BrowserAccessibilityManager for this view.
150 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 150 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
151 BrowserAccessibilityDelegate* delegate); 151 BrowserAccessibilityDelegate* delegate);
152 152
153 virtual void AccessibilityShowMenu(const gfx::Point& point); 153 virtual void AccessibilityShowMenu(const gfx::Point& point);
154 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); 154 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds);
155 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); 155 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget();
156 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); 156 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible();
157 157
158 // Informs that the focused DOM node has changed. 158 // Informs that the focused DOM node has changed.
159 virtual void FocusedNodeChanged(bool is_editable_node) {} 159 virtual void FocusedNodeChanged(bool is_editable_node, bool is_plugin_node);
160 bool focused_node_is_plugin() const { return focused_node_is_plugin_; }
160 161
161 virtual void OnSwapCompositorFrame(uint32 output_surface_id, 162 virtual void OnSwapCompositorFrame(uint32 output_surface_id,
162 scoped_ptr<cc::CompositorFrame> frame) {} 163 scoped_ptr<cc::CompositorFrame> frame) {}
163 164
164 // Because the associated remote WebKit instance can asynchronously 165 // Because the associated remote WebKit instance can asynchronously
165 // prevent-default on a dispatched touch event, the touch events are queued in 166 // prevent-default on a dispatched touch event, the touch events are queued in
166 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 167 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
167 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 168 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
168 // or ignored (when |ack_result| is CONSUMED). 169 // or ignored (when |ack_result| is CONSUMED).
169 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 170 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Whether pinch-to-zoom should be enabled and pinch events forwarded to the 406 // Whether pinch-to-zoom should be enabled and pinch events forwarded to the
406 // renderer. 407 // renderer.
407 bool pinch_zoom_enabled_; 408 bool pinch_zoom_enabled_;
408 409
409 private: 410 private:
410 void FlushInput(); 411 void FlushInput();
411 412
412 gfx::Rect current_display_area_; 413 gfx::Rect current_display_area_;
413 414
414 uint32 renderer_frame_number_; 415 uint32 renderer_frame_number_;
416 bool focused_node_is_plugin_;
415 417
416 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 418 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
417 419
418 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 420 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
419 421
420 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 422 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
421 }; 423 };
422 424
423 } // namespace content 425 } // namespace content
424 426
425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 427 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698