| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 float pageScaleDelta, | 93 float pageScaleDelta, |
| 94 float topControlsDelta) override; | 94 float topControlsDelta) override; |
| 95 void mouseCaptureLost() override; | 95 void mouseCaptureLost() override; |
| 96 void setFocus(bool enable) override; | 96 void setFocus(bool enable) override; |
| 97 bool setComposition( | 97 bool setComposition( |
| 98 const WebString& text, | 98 const WebString& text, |
| 99 const WebVector<WebCompositionUnderline>& underlines, | 99 const WebVector<WebCompositionUnderline>& underlines, |
| 100 int selectionStart, int selectionEnd) override; | 100 int selectionStart, int selectionEnd) override; |
| 101 bool confirmComposition() override; | 101 bool confirmComposition() override; |
| 102 bool confirmComposition(ConfirmCompositionBehavior selectionBehavior) overri
de; | 102 bool confirmComposition(ConfirmCompositionBehavior selectionBehavior) overri
de; |
| 103 bool confirmComposition(const WebString& text) override; | 103 bool confirmComposition(const WebString& text, int newCursorPosition) overri
de; |
| 104 bool compositionRange(size_t* location, size_t* length) override; | 104 bool compositionRange(size_t* location, size_t* length) override; |
| 105 WebTextInputInfo textInputInfo() override; | 105 WebTextInputInfo textInputInfo() override; |
| 106 WebTextInputType textInputType() override; | 106 WebTextInputType textInputType() override; |
| 107 WebColor backgroundColor() const override; | 107 WebColor backgroundColor() const override; |
| 108 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; | 108 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; |
| 109 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; | 109 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; |
| 110 bool isSelectionAnchorFirst() const override; | 110 bool isSelectionAnchorFirst() const override; |
| 111 bool caretOrSelectionRange(size_t* location, size_t* length) override; | 111 bool caretOrSelectionRange(size_t* location, size_t* length) override; |
| 112 void setTextDirection(WebTextDirection) override; | 112 void setTextDirection(WebTextDirection) override; |
| 113 bool isAcceleratedCompositingActive() const override; | 113 bool isAcceleratedCompositingActive() const override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; | 198 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; |
| 199 | 199 |
| 200 WebViewImpl* view() const { return m_localRoot->viewImpl(); } | 200 WebViewImpl* view() const { return m_localRoot->viewImpl(); } |
| 201 | 201 |
| 202 // This method returns the focused frame belonging to this WebWidget, that | 202 // This method returns the focused frame belonging to this WebWidget, that |
| 203 // is, a focused frame with the same local root as the one corresponding | 203 // is, a focused frame with the same local root as the one corresponding |
| 204 // to this widget. It will return nullptr if no frame is focused or, the | 204 // to this widget. It will return nullptr if no frame is focused or, the |
| 205 // focused frame has a different local root. | 205 // focused frame has a different local root. |
| 206 LocalFrame* focusedLocalFrameInWidget() const; | 206 LocalFrame* focusedLocalFrameInWidget() const; |
| 207 | 207 |
| 208 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se
lectionBehavior) const; | 208 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se
lectionBehavior, int newCursorPosition) const; |
| 209 | 209 |
| 210 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; | 210 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; |
| 211 | 211 |
| 212 WebString inputModeOfFocusedElement() const; | 212 WebString inputModeOfFocusedElement() const; |
| 213 | 213 |
| 214 int textInputFlags() const; | 214 int textInputFlags() const; |
| 215 | 215 |
| 216 LocalFrame* focusedLocalFrameAvailableForIme() const; | 216 LocalFrame* focusedLocalFrameAvailableForIme() const; |
| 217 | 217 |
| 218 WebWidgetClient* m_client; | 218 WebWidgetClient* m_client; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 WebColor m_baseBackgroundColor; | 253 WebColor m_baseBackgroundColor; |
| 254 | 254 |
| 255 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 255 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); | 258 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); |
| 259 | 259 |
| 260 } // namespace blink | 260 } // namespace blink |
| 261 | 261 |
| 262 #endif | 262 #endif |
| OLD | NEW |