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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an Error 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 236 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
237 237
238 // The currently open page popup, which are calendar and datalist pickers 238 // The currently open page popup, which are calendar and datalist pickers
239 // but not the select popup. 239 // but not the select popup.
240 virtual WebPagePopup* pagePopup() const { return 0; } 240 virtual WebPagePopup* pagePopup() const { return 0; }
241 241
242 // Updates top controls constraints and current state. Allows embedder to 242 // Updates top controls constraints and current state. Allows embedder to
243 // control what are valid states for top controls and if it should animate. 243 // control what are valid states for top controls and if it should animate.
244 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 244 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
245 245
246 // Populate |bounds| with the composition character bounds for the ongoing
247 // composition. Returns false if there is no focused input or any ongoing
248 // composition.
249 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { ret urn false; }
250
251 // Applies the range from |start| to |start + length| on the foucsed frame s o that the text will later be replaced.
252 virtual void applyReplacementRange(int start, int length) {}
dcheng 2016/07/12 14:43:21 Does it make sense to move these to WebFrameWidget
EhsanK 2016/07/12 15:13:24 Sorry if the question is simplistic: I am making t
dcheng 2016/07/18 16:38:33 WebLocalFrame has a frameWidget method (which shou
EhsanK 2016/07/19 05:37:32 I think moving common logic in IME to a base class
253
246 protected: 254 protected:
247 ~WebWidget() { } 255 ~WebWidget() { }
248 }; 256 };
249 257
250 } // namespace blink 258 } // namespace blink
251 259
252 #endif 260 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698