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

Side by Side Diff: sky/engine/public/web/WebWidgetClient.h

Issue 874823002: Move GestureEvent to NewEventDispatcher (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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
« no previous file with comments | « sky/engine/public/web/WebViewClient.h ('k') | sky/engine/web/WebInputEventConversion.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
33 33
34 #include "sky/engine/public/platform/WebCommon.h" 34 #include "sky/engine/public/platform/WebCommon.h"
35 #include "sky/engine/public/platform/WebLayerTreeView.h" 35 #include "sky/engine/public/platform/WebLayerTreeView.h"
36 #include "sky/engine/public/platform/WebRect.h" 36 #include "sky/engine/public/platform/WebRect.h"
37 #include "sky/engine/public/platform/WebScreenInfo.h" 37 #include "sky/engine/public/platform/WebScreenInfo.h"
38 #include "sky/engine/public/web/WebNavigationPolicy.h" 38 #include "sky/engine/public/web/WebNavigationPolicy.h"
39 #include "sky/engine/public/web/WebTouchAction.h" 39 #include "sky/engine/public/web/WebTouchAction.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class WebGestureEvent;
44 class WebString; 43 class WebString;
45 class WebWidget; 44 class WebWidget;
46 struct WebCursorInfo; 45 struct WebCursorInfo;
47 struct WebSize; 46 struct WebSize;
48 47
49 class WebWidgetClient { 48 class WebWidgetClient {
50 public: 49 public:
51 // Called when the Widget has changed size as a result of an auto-resize. 50 // Called when the Widget has changed size as a result of an auto-resize.
52 virtual void didAutoResize(const WebSize& newSize) { } 51 virtual void didAutoResize(const WebSize& newSize) { }
53 52
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // displayed. 113 // displayed.
115 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } 114 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); }
116 115
117 // Called to get the scale factor of the display. 116 // Called to get the scale factor of the display.
118 virtual float deviceScaleFactor() { return 1; } 117 virtual float deviceScaleFactor() { return 1; }
119 118
120 // When this method gets called, WebWidgetClient implementation should 119 // When this method gets called, WebWidgetClient implementation should
121 // reset the input method by cancelling any ongoing composition. 120 // reset the input method by cancelling any ongoing composition.
122 virtual void resetInputMethod() { } 121 virtual void resetInputMethod() { }
123 122
124 // Called when a gesture event is handled.
125 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { }
126
127 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder 123 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder
128 // of the touch actions that are permitted for this touch. 124 // of the touch actions that are permitted for this touch.
129 virtual void setTouchAction(WebTouchAction touchAction) { } 125 virtual void setTouchAction(WebTouchAction touchAction) { }
130 126
131 // Called when value of focused text field gets dirty, e.g. value is 127 // Called when value of focused text field gets dirty, e.g. value is
132 // modified by script, not by user input. 128 // modified by script, not by user input.
133 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 129 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
134 130
135 // Request the browser to show the IME for current input type. 131 // Request the browser to show the IME for current input type.
136 virtual void showImeIfNeeded() { } 132 virtual void showImeIfNeeded() { }
137 133
138 protected: 134 protected:
139 ~WebWidgetClient() { } 135 ~WebWidgetClient() { }
140 }; 136 };
141 137
142 } // namespace blink 138 } // namespace blink
143 139
144 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_ 140 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebViewClient.h ('k') | sky/engine/web/WebInputEventConversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698