| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void showImeIfNeeded() override; | 284 void showImeIfNeeded() override; |
| 285 void convertViewportToWindow(blink::WebRect* rect) override; | 285 void convertViewportToWindow(blink::WebRect* rect) override; |
| 286 void convertWindowToViewport(blink::WebFloatRect* rect) override; | 286 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
| 287 bool requestPointerLock() override; | 287 bool requestPointerLock() override; |
| 288 void requestPointerUnlock() override; | 288 void requestPointerUnlock() override; |
| 289 bool isPointerLocked() override; | 289 bool isPointerLocked() override; |
| 290 | 290 |
| 291 // Override point to obtain that the current input method state and caret | 291 // Override point to obtain that the current input method state and caret |
| 292 // position. | 292 // position. |
| 293 virtual ui::TextInputType GetTextInputType(); | 293 virtual ui::TextInputType GetTextInputType(); |
| 294 virtual ui::TextInputType WebKitToUiTextInputType( | |
| 295 blink::WebTextInputType type); | |
| 296 | 294 |
| 297 #if defined(OS_ANDROID) | 295 #if defined(OS_ANDROID) |
| 298 // Notifies that a tap was not consumed, so showing a UI for the unhandled | 296 // Notifies that a tap was not consumed, so showing a UI for the unhandled |
| 299 // tap may be needed. | 297 // tap may be needed. |
| 300 // Performs various checks on the given WebNode to apply heuristics to | 298 // Performs various checks on the given WebNode to apply heuristics to |
| 301 // determine if triggering is appropriate. | 299 // determine if triggering is appropriate. |
| 302 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, | 300 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, |
| 303 const blink::WebNode& tapped_node, | 301 const blink::WebNode& tapped_node, |
| 304 bool page_changed) override; | 302 bool page_changed) override; |
| 305 #endif | 303 #endif |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 // Stores edit commands associated to the next key event. | 826 // Stores edit commands associated to the next key event. |
| 829 // Will be cleared as soon as the next key event is processed. | 827 // Will be cleared as soon as the next key event is processed. |
| 830 EditCommands edit_commands_; | 828 EditCommands edit_commands_; |
| 831 | 829 |
| 832 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 830 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 833 }; | 831 }; |
| 834 | 832 |
| 835 } // namespace content | 833 } // namespace content |
| 836 | 834 |
| 837 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |