Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.h

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing kenrb@'s comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 WebTextInputType textInputType() override; 107 WebTextInputType textInputType() override;
108 WebColor backgroundColor() const override; 108 WebColor backgroundColor() const override;
109 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; 109 bool selectionBounds(WebRect& anchor, WebRect& focus) const override;
110 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override; 110 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override;
111 bool isSelectionAnchorFirst() const override; 111 bool isSelectionAnchorFirst() const override;
112 bool caretOrSelectionRange(size_t* location, size_t* length) override; 112 bool caretOrSelectionRange(size_t* location, size_t* length) override;
113 void setTextDirection(WebTextDirection) override; 113 void setTextDirection(WebTextDirection) override;
114 bool isAcceleratedCompositingActive() const override; 114 bool isAcceleratedCompositingActive() const override;
115 void willCloseLayerTreeView() override; 115 void willCloseLayerTreeView() override;
116 void didChangeWindowResizerRect() override; 116 void didChangeWindowResizerRect() override;
117 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override;
118 void adjustReplacementRangeForAccentedCharacters(int start, int length) over ride;
117 119
118 // WebFrameWidget implementation. 120 // WebFrameWidget implementation.
119 void setVisibilityState(WebPageVisibilityState, bool) override; 121 void setVisibilityState(WebPageVisibilityState, bool) override;
120 bool isTransparent() const override; 122 bool isTransparent() const override;
121 void setIsTransparent(bool) override; 123 void setIsTransparent(bool) override;
122 void setBaseBackgroundColor(WebColor) override; 124 void setBaseBackgroundColor(WebColor) override;
123 void scheduleAnimation() override; 125 void scheduleAnimation() override;
124 CompositorProxyClient* createCompositorProxyClient() override; 126 CompositorProxyClient* createCompositorProxyClient() override;
125 127
126 WebWidgetClient* client() const override { return m_client; } 128 WebWidgetClient* client() const override { return m_client; }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override; 188 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override;
187 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override; 189 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override;
188 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; 190 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override;
189 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) override; 191 WebInputEventResult handleMouseWheel(LocalFrame&, const WebMouseWheelEvent&) override;
190 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; 192 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override;
191 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; 193 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override;
192 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 194 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
193 195
194 WebViewImpl* view() const { return m_localRoot->viewImpl(); } 196 WebViewImpl* view() const { return m_localRoot->viewImpl(); }
195 197
198 // This method returns the focused frame belonging to this WebWidget, that
199 // is, a focused frame with the same local root as the one corresponding
200 // to this widget.
kenrb 2016/06/28 20:55:56 Also specify it returns nullptr if there is no foc
EhsanK 2016/06/29 14:04:19 Acknowledged.
201 WebLocalFrame* focusedWebLocalFrameInWidget() const;
202
196 WebWidgetClient* m_client; 203 WebWidgetClient* m_client;
197 204
198 // WebFrameWidget is associated with a subtree of the frame tree, correspond ing to a maximal 205 // WebFrameWidget is associated with a subtree of the frame tree, correspond ing to a maximal
199 // connected tree of LocalFrames. This member points to the root of that sub tree. 206 // connected tree of LocalFrames. This member points to the root of that sub tree.
200 Member<WebLocalFrameImpl> m_localRoot; 207 Member<WebLocalFrameImpl> m_localRoot;
201 208
202 WebSize m_size; 209 WebSize m_size;
203 210
204 // If set, the (plugin) node which has mouse capture. 211 // If set, the (plugin) node which has mouse capture.
205 Member<Node> m_mouseCaptureNode; 212 Member<Node> m_mouseCaptureNode;
(...skipping 22 matching lines...) Expand all
228 WebColor m_baseBackgroundColor; 235 WebColor m_baseBackgroundColor;
229 236
230 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; 237 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
231 }; 238 };
232 239
233 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe()); 240 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe());
234 241
235 } // namespace blink 242 } // namespace blink
236 243
237 #endif 244 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698