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