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

Side by Side Diff: android_webview/browser/in_process_renderer/in_process_renderer_client.h

Issue 15920002: Fix WebView compositor input handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make InputEventAckState public Created 7 years, 7 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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_ 5 #ifndef ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_
6 #define ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_ 6 #define ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_
7 7
8 #include "android_webview/renderer/aw_content_renderer_client.h" 8 #include "android_webview/renderer/aw_content_renderer_client.h"
9 9
10 namespace android_webview { 10 namespace android_webview {
11 11
12 // Specialization of the Renderer client used in single process mode, to 12 // Specialization of the Renderer client used in single process mode, to
13 // route various factory-like methods to browser/ side code (in general, 13 // route various factory-like methods to browser/ side code (in general,
14 // this is only needed / allowed in order to meet synchronous rendering 14 // this is only needed / allowed in order to meet synchronous rendering
15 // requirements). 15 // requirements).
16 class InProcessRendererClient : public AwContentRendererClient { 16 class InProcessRendererClient : public AwContentRendererClient {
17 public: 17 public:
18 InProcessRendererClient();
19 virtual ~InProcessRendererClient();
20
18 virtual base::MessageLoop* OverrideCompositorMessageLoop() const OVERRIDE; 21 virtual base::MessageLoop* OverrideCompositorMessageLoop() const OVERRIDE;
19 virtual void DidCreateSynchronousCompositor( 22 virtual void DidCreateSynchronousCompositor(
20 int render_view_id, 23 int render_view_id,
21 content::SynchronousCompositor* compositor) OVERRIDE; 24 content::SynchronousCompositor* compositor) OVERRIDE;
22 virtual bool ShouldCreateCompositorInputHandler() const OVERRIDE; 25 virtual void DidCreateSynchronousInputEventHandler(
26 content::SynchronousInputEventHandler* input_event_handler) OVERRIDE;
27
28 private:
29 content::SynchronousInputEventHandler* input_event_handler_;
23 }; 30 };
24 31
25 } // android_webview 32 } // android_webview
26 33
27 #endif // ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_ 34 #endif // ANDROID_WEBVIEW_COMMON_IN_PROCESS_RENDERER_CLIENT_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698