OLD | NEW |
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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 blink::WebScreenInfo screenInfo() override; | 228 blink::WebScreenInfo screenInfo() override; |
229 void resetInputMethod() override; | 229 void resetInputMethod() override; |
230 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 230 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
231 bool event_cancelled) override; | 231 bool event_cancelled) override; |
232 void didOverscroll(const blink::WebFloatSize& unusedDelta, | 232 void didOverscroll(const blink::WebFloatSize& unusedDelta, |
233 const blink::WebFloatSize& accumulatedRootOverScroll, | 233 const blink::WebFloatSize& accumulatedRootOverScroll, |
234 const blink::WebFloatPoint& position, | 234 const blink::WebFloatPoint& position, |
235 const blink::WebFloatSize& velocity) override; | 235 const blink::WebFloatSize& velocity) override; |
236 void showImeIfNeeded() override; | 236 void showImeIfNeeded() override; |
237 void convertViewportToWindow(blink::WebRect* rect) override; | 237 void convertViewportToWindow(blink::WebRect* rect) override; |
| 238 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
238 | 239 |
239 // Override point to obtain that the current input method state and caret | 240 // Override point to obtain that the current input method state and caret |
240 // position. | 241 // position. |
241 virtual ui::TextInputType GetTextInputType(); | 242 virtual ui::TextInputType GetTextInputType(); |
242 virtual ui::TextInputType WebKitToUiTextInputType( | 243 virtual ui::TextInputType WebKitToUiTextInputType( |
243 blink::WebTextInputType type); | 244 blink::WebTextInputType type); |
244 | 245 |
245 #if defined(OS_ANDROID) | 246 #if defined(OS_ANDROID) |
246 // Notifies that a tap was not consumed, so showing a UI for the unhandled | 247 // Notifies that a tap was not consumed, so showing a UI for the unhandled |
247 // tap may be needed. | 248 // tap may be needed. |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 | 754 |
754 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 755 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
755 render_widget_scheduling_state_; | 756 render_widget_scheduling_state_; |
756 | 757 |
757 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 758 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
758 }; | 759 }; |
759 | 760 |
760 } // namespace content | 761 } // namespace content |
761 | 762 |
762 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 763 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |