OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const gfx::Range& range) override; | 91 const gfx::Range& range) override; |
92 void SelectionBoundsChanged( | 92 void SelectionBoundsChanged( |
93 const ViewHostMsg_SelectionBounds_Params& params) override; | 93 const ViewHostMsg_SelectionBounds_Params& params) override; |
94 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 94 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
95 const gfx::Size& dst_size, | 95 const gfx::Size& dst_size, |
96 CopyFromCompositingSurfaceCallback& callback, | 96 CopyFromCompositingSurfaceCallback& callback, |
97 const SkColorType color_type) override; | 97 const SkColorType color_type) override; |
98 void OnSwapCompositorFrame(uint32 output_surface_id, | 98 void OnSwapCompositorFrame(uint32 output_surface_id, |
99 scoped_ptr<cc::CompositorFrame> frame) override; | 99 scoped_ptr<cc::CompositorFrame> frame) override; |
100 #if defined(USE_AURA) | 100 #if defined(USE_AURA) |
101 virtual void ProcessAckedTouchEvent( | 101 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
102 const TouchEventWithLatencyInfo& touch, | 102 InputEventAckState ack_result) override; |
103 InputEventAckState ack_result) override; | |
104 #endif | 103 #endif |
105 bool LockMouse() override; | 104 bool LockMouse() override; |
106 void UnlockMouse() override; | 105 void UnlockMouse() override; |
107 void GetScreenInfo(blink::WebScreenInfo* results) override; | 106 void GetScreenInfo(blink::WebScreenInfo* results) override; |
108 | 107 |
109 #if defined(OS_MACOSX) | 108 #if defined(OS_MACOSX) |
110 // RenderWidgetHostView implementation. | 109 // RenderWidgetHostView implementation. |
111 void SetActive(bool active) override; | 110 void SetActive(bool active) override; |
112 void SetWindowVisibility(bool visible) override; | 111 void SetWindowVisibility(bool visible) override; |
113 void WindowFrameChanged() override; | 112 void WindowFrameChanged() override; |
114 void ShowDefinitionForSelection() override; | 113 void ShowDefinitionForSelection() override; |
115 bool SupportsSpeech() const override; | 114 bool SupportsSpeech() const override; |
116 void SpeakSelection() override; | 115 void SpeakSelection() override; |
117 bool IsSpeaking() const override; | 116 bool IsSpeaking() const override; |
118 void StopSpeaking() override; | 117 void StopSpeaking() override; |
119 | 118 |
120 // RenderWidgetHostViewBase implementation. | 119 // RenderWidgetHostViewBase implementation. |
121 bool PostProcessEventForPluginIme( | 120 bool PostProcessEventForPluginIme( |
122 const NativeWebKeyboardEvent& event) override; | 121 const NativeWebKeyboardEvent& event) override; |
123 #endif // defined(OS_MACOSX) | 122 #endif // defined(OS_MACOSX) |
124 | 123 |
125 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) | 124 #if defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) |
126 // RenderWidgetHostViewBase implementation. | 125 // RenderWidgetHostViewBase implementation. |
127 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 126 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
128 const SkBitmap& zoomed_bitmap) override; | 127 const SkBitmap& zoomed_bitmap) override; |
129 #endif // defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) | 128 #endif // defined(OS_ANDROID) || defined(TOOLKIT_VIEWS) |
130 | 129 |
131 #if defined(OS_ANDROID) | 130 #if defined(OS_ANDROID) |
132 virtual void LockCompositingSurface() override; | 131 virtual void LockCompositingSurface() override; |
133 virtual void UnlockCompositingSurface() override; | 132 virtual void UnlockCompositingSurface() override; |
134 #endif // defined(OS_ANDROID) | 133 #endif // defined(OS_ANDROID) |
135 | 134 |
136 #if defined(OS_WIN) | 135 #if defined(OS_WIN) |
137 virtual void SetParentNativeViewAccessible( | 136 virtual void SetParentNativeViewAccessible( |
138 gfx::NativeViewAccessible accessible_parent) override; | 137 gfx::NativeViewAccessible accessible_parent) override; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; | 175 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; |
177 #if defined(USE_AURA) | 176 #if defined(USE_AURA) |
178 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 177 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
179 #endif | 178 #endif |
180 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace content | 182 } // namespace content |
184 | 183 |
185 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 184 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |