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

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

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Add DCHECK, rebase test. Created 3 years, 6 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebWidget_h 31 #ifndef WebWidget_h
32 #define WebWidget_h 32 #define WebWidget_h
33 33
34 #include "WebCompositionUnderline.h"
35 #include "WebMenuSourceType.h"
36 #include "WebRange.h"
37 #include "WebTextDirection.h"
dcheng 2017/05/26 17:18:45 Btw since clang-format is changing these anyway, d
34 #include "public/platform/WebBrowserControlsState.h" 38 #include "public/platform/WebBrowserControlsState.h"
35 #include "public/platform/WebCanvas.h" 39 #include "public/platform/WebCanvas.h"
36 #include "public/platform/WebCommon.h" 40 #include "public/platform/WebCommon.h"
37 #include "public/platform/WebFloatSize.h" 41 #include "public/platform/WebFloatSize.h"
38 #include "public/platform/WebInputEventResult.h" 42 #include "public/platform/WebInputEventResult.h"
39 #include "public/platform/WebPoint.h" 43 #include "public/platform/WebPoint.h"
40 #include "public/platform/WebRect.h" 44 #include "public/platform/WebRect.h"
41 #include "public/platform/WebSize.h" 45 #include "public/platform/WebSize.h"
42 #include "public/platform/WebTextInputInfo.h" 46 #include "public/platform/WebTextInputInfo.h"
43 #include "WebCompositionUnderline.h"
44 #include "WebRange.h"
45 #include "WebTextDirection.h"
46 47
47 namespace blink { 48 namespace blink {
48 49
49 class WebCompositeAndReadbackAsyncCallback; 50 class WebCompositeAndReadbackAsyncCallback;
50 class WebCoalescedInputEvent; 51 class WebCoalescedInputEvent;
51 class WebLayoutAndPaintAsyncCallback; 52 class WebLayoutAndPaintAsyncCallback;
52 class WebPagePopup; 53 class WebPagePopup;
53 struct WebPoint; 54 struct WebPoint;
54 template <typename T> 55 template <typename T>
55 class WebVector; 56 class WebVector;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 WebBrowserControlsState current, 218 WebBrowserControlsState current,
218 bool animate) {} 219 bool animate) {}
219 220
220 // Populate |bounds| with the composition character bounds for the ongoing 221 // Populate |bounds| with the composition character bounds for the ongoing
221 // composition. Returns false if there is no focused input or any ongoing 222 // composition. Returns false if there is no focused input or any ongoing
222 // composition. 223 // composition.
223 virtual bool GetCompositionCharacterBounds(WebVector<WebRect>& bounds) { 224 virtual bool GetCompositionCharacterBounds(WebVector<WebRect>& bounds) {
224 return false; 225 return false;
225 } 226 }
226 227
228 // Called by client to request showing the context menu.
229 virtual void ShowContextMenu(WebMenuSourceType) {}
230
227 protected: 231 protected:
228 ~WebWidget() {} 232 ~WebWidget() {}
229 }; 233 };
230 234
231 } // namespace blink 235 } // namespace blink
232 236
233 #endif 237 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698