| 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 relativeCaretPosition) ov
     erride; | 
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 199     WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; | 199     WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; | 
| 200 | 200 | 
| 201     WebViewImpl* view() const { return m_localRoot->viewImpl(); } | 201     WebViewImpl* view() const { return m_localRoot->viewImpl(); } | 
| 202 | 202 | 
| 203     // This method returns the focused frame belonging to this WebWidget, that | 203     // This method returns the focused frame belonging to this WebWidget, that | 
| 204     // is, a focused frame with the same local root as the one corresponding | 204     // is, a focused frame with the same local root as the one corresponding | 
| 205     // to this widget. It will return nullptr if no frame is focused or, the | 205     // to this widget. It will return nullptr if no frame is focused or, the | 
| 206     // focused frame has a different local root. | 206     // focused frame has a different local root. | 
| 207     LocalFrame* focusedLocalFrameInWidget() const; | 207     LocalFrame* focusedLocalFrameInWidget() const; | 
| 208 | 208 | 
| 209     bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se
     lectionBehavior) const; | 209     bool confirmComposition(const WebString& text, ConfirmCompositionBehavior se
     lectionBehavior, int relativeCaretPosition) const; | 
| 210 | 210 | 
| 211     WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; | 211     WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; | 
| 212 | 212 | 
| 213     WebString inputModeOfFocusedElement() const; | 213     WebString inputModeOfFocusedElement() const; | 
| 214 | 214 | 
| 215     int textInputFlags() const; | 215     int textInputFlags() const; | 
| 216 | 216 | 
| 217     LocalFrame* focusedLocalFrameAvailableForIme() const; | 217     LocalFrame* focusedLocalFrameAvailableForIme() const; | 
| 218 | 218 | 
| 219     WebWidgetClient* m_client; | 219     WebWidgetClient* m_client; | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 254     WebColor m_baseBackgroundColor; | 254     WebColor m_baseBackgroundColor; | 
| 255 | 255 | 
| 256     SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 256     SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 
| 257 }; | 257 }; | 
| 258 | 258 | 
| 259 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
     frame(), widget.forSubframe()); | 259 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
     frame(), widget.forSubframe()); | 
| 260 | 260 | 
| 261 } // namespace blink | 261 } // namespace blink | 
| 262 | 262 | 
| 263 #endif | 263 #endif | 
| OLD | NEW | 
|---|