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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month 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 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/public/web/WebPlugin.h" 8 #include "third_party/WebKit/public/web/WebPlugin.h"
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/sequenced_task_runner_helpers.h" 14 #include "base/sequenced_task_runner_helpers.h"
15 #include "content/renderer/mouse_lock_dispatcher.h" 15 #include "content/renderer/mouse_lock_dispatcher.h"
16 #include "content/renderer/render_view_impl.h" 16 #include "content/renderer/render_view_impl.h"
17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
18 #include "third_party/WebKit/public/web/WebDragStatus.h" 18 #include "third_party/WebKit/public/web/WebDragStatus.h"
19 #include "third_party/WebKit/public/web/WebInputMethodController.h" 19 #include "third_party/WebKit/public/web/WebInputMethodController.h"
20 #include "third_party/WebKit/public/web/WebNode.h" 20 #include "third_party/WebKit/public/web/WebNode.h"
21 21
22 namespace cc { 22 namespace cc {
23 class SurfaceId; 23 class SurfaceId;
24 struct SurfaceSequence; 24 struct SurfaceSequence;
25 } 25 }
26 26
27 namespace blink {
28 class CoalescedWebInputEvent;
29 }
30
27 namespace content { 31 namespace content {
28 32
29 class BrowserPluginDelegate; 33 class BrowserPluginDelegate;
30 class BrowserPluginManager; 34 class BrowserPluginManager;
31 class ChildFrameCompositingHelper; 35 class ChildFrameCompositingHelper;
32 36
33 class CONTENT_EXPORT BrowserPlugin : 37 class CONTENT_EXPORT BrowserPlugin :
34 NON_EXPORTED_BASE(public blink::WebPlugin), 38 NON_EXPORTED_BASE(public blink::WebPlugin),
35 public MouseLockDispatcher::LockTarget { 39 public MouseLockDispatcher::LockTarget {
36 public: 40 public:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void updateAllLifecyclePhases() override {} 93 void updateAllLifecyclePhases() override {}
90 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} 94 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {}
91 void updateGeometry(const blink::WebRect& window_rect, 95 void updateGeometry(const blink::WebRect& window_rect,
92 const blink::WebRect& clip_rect, 96 const blink::WebRect& clip_rect,
93 const blink::WebRect& unobscured_rect, 97 const blink::WebRect& unobscured_rect,
94 const blink::WebVector<blink::WebRect>& cut_outs_rects, 98 const blink::WebVector<blink::WebRect>& cut_outs_rects,
95 bool is_visible) override; 99 bool is_visible) override;
96 void updateFocus(bool focused, blink::WebFocusType focus_type) override; 100 void updateFocus(bool focused, blink::WebFocusType focus_type) override;
97 void updateVisibility(bool visible) override; 101 void updateVisibility(bool visible) override;
98 blink::WebInputEventResult handleInputEvent( 102 blink::WebInputEventResult handleInputEvent(
99 const blink::WebInputEvent& event, 103 const blink::CoalescedWebInputEvent& event,
100 blink::WebCursorInfo& cursor_info) override; 104 blink::WebCursorInfo& cursor_info) override;
101 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, 105 bool handleDragStatusUpdate(blink::WebDragStatus drag_status,
102 const blink::WebDragData& drag_data, 106 const blink::WebDragData& drag_data,
103 blink::WebDragOperationsMask mask, 107 blink::WebDragOperationsMask mask,
104 const blink::WebPoint& position, 108 const blink::WebPoint& position,
105 const blink::WebPoint& screen) override; 109 const blink::WebPoint& screen) override;
106 void didReceiveResponse(const blink::WebURLResponse& response) override; 110 void didReceiveResponse(const blink::WebURLResponse& response) override;
107 void didReceiveData(const char* data, int data_length) override; 111 void didReceiveData(const char* data, int data_length) override;
108 void didFinishLoading() override; 112 void didFinishLoading() override;
109 void didFailLoading(const blink::WebURLError& error) override; 113 void didFailLoading(const blink::WebURLError& error) override;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 207 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
204 // get called after BrowserPlugin has been destroyed. 208 // get called after BrowserPlugin has been destroyed.
205 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 209 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
206 210
207 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 211 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
208 }; 212 };
209 213
210 } // namespace content 214 } // namespace content
211 215
212 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 216 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698