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

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

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix virtual method with no implementation, non-explicit single argument constructor Created 7 years, 9 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 112 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
113 #if defined(TOOLKIT_GTK) 113 #if defined(TOOLKIT_GTK)
114 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 114 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
115 GdkWindow* target) OVERRIDE; 115 GdkWindow* target) OVERRIDE;
116 #elif defined(OS_MACOSX) 116 #elif defined(OS_MACOSX)
117 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 117 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
118 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 118 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
119 CGContextRef target) OVERRIDE; 119 CGContextRef target) OVERRIDE;
120 #endif 120 #endif
121 virtual void EnableFullAccessibilityMode() OVERRIDE; 121 virtual void EnableFullAccessibilityMode() OVERRIDE;
122 virtual bool GetAccessibilityEnabled() const OVERRIDE;
123 virtual void SetAccessibilityEnabled(bool enabled) OVERRIDE;
dmazzoni 2013/02/26 22:37:36 This is now redundant with EnableFullAccessibility
aboxhall 2013/02/27 01:44:16 Since AccessibilityMode is now in content/public,
124
122 virtual void ForwardMouseEvent( 125 virtual void ForwardMouseEvent(
123 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 126 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
124 virtual void ForwardWheelEvent( 127 virtual void ForwardWheelEvent(
125 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE; 128 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE;
126 virtual void ForwardKeyboardEvent( 129 virtual void ForwardKeyboardEvent(
127 const NativeWebKeyboardEvent& key_event) OVERRIDE; 130 const NativeWebKeyboardEvent& key_event) OVERRIDE;
128 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; 131 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE;
129 virtual RenderProcessHost* GetProcess() const OVERRIDE; 132 virtual RenderProcessHost* GetProcess() const OVERRIDE;
130 virtual int GetRoutingID() const OVERRIDE; 133 virtual int GetRoutingID() const OVERRIDE;
131 virtual RenderWidgetHostView* GetView() const OVERRIDE; 134 virtual RenderWidgetHostView* GetView() const OVERRIDE;
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 723
721 // (Similar to |next_mouse_move_|.) The next mouse wheel events to send. 724 // (Similar to |next_mouse_move_|.) The next mouse wheel events to send.
722 // Unlike mouse moves, mouse wheel events received while one is pending are 725 // Unlike mouse moves, mouse wheel events received while one is pending are
723 // coalesced (by accumulating deltas) if they match the previous event in 726 // coalesced (by accumulating deltas) if they match the previous event in
724 // modifiers. On the Mac, in particular, mouse wheel events are received at a 727 // modifiers. On the Mac, in particular, mouse wheel events are received at a
725 // high rate; not waiting for the ack results in jankiness, and using the same 728 // high rate; not waiting for the ack results in jankiness, and using the same
726 // mechanism as for mouse moves (just dropping old events when multiple ones 729 // mechanism as for mouse moves (just dropping old events when multiple ones
727 // would be queued) results in very slow scrolling. 730 // would be queued) results in very slow scrolling.
728 WheelEventQueue coalesced_mouse_wheel_events_; 731 WheelEventQueue coalesced_mouse_wheel_events_;
729 732
733 enum AccessibilityMode accessibility_mode_;
734
730 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK. 735 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK.
731 bool select_range_pending_; 736 bool select_range_pending_;
732 737
733 // (Similar to |next_mouse_move_|.) The next SelectRange to send, if any. 738 // (Similar to |next_mouse_move_|.) The next SelectRange to send, if any.
734 struct SelectionRange { 739 struct SelectionRange {
735 gfx::Point start, end; 740 gfx::Point start, end;
736 }; 741 };
737 scoped_ptr<SelectionRange> next_selection_range_; 742 scoped_ptr<SelectionRange> next_selection_range_;
738 743
739 // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK. 744 // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 #if defined(OS_WIN) 847 #if defined(OS_WIN)
843 std::list<HWND> dummy_windows_for_activation_; 848 std::list<HWND> dummy_windows_for_activation_;
844 #endif 849 #endif
845 850
846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
847 }; 852 };
848 853
849 } // namespace content 854 } // namespace content
850 855
851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698