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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.h

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: unittest Created 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/browser/renderer_host/render_view_host_delegate_view.h" 11 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
12 #include "content/browser/web_contents/web_contents_view.h" 12 #include "content/browser/web_contents/web_contents_view.h"
13 #include "content/public/browser/web_contents_view_delegate.h" 13 #include "content/public/browser/web_contents_view_delegate.h"
14 #include "content/public/common/context_menu_params.h" 14 #include "content/public/common/context_menu_params.h"
15 #include "content/public/common/drop_data.h" 15 #include "content/public/common/drop_data.h"
16 #include "ui/android/overscroll_refresh.h" 16 #include "ui/android/overscroll_refresh.h"
17 #include "ui/android/view_android.h" 17 #include "ui/android/view_android.h"
18 #include "ui/android/view_client.h"
18 #include "ui/gfx/geometry/rect_f.h" 19 #include "ui/gfx/geometry/rect_f.h"
19 20
20 namespace content { 21 namespace content {
21 class ContentViewCoreImpl; 22 class ContentViewCoreImpl;
22 class SynchronousCompositorClient; 23 class SynchronousCompositorClient;
23 class WebContentsImpl; 24 class WebContentsImpl;
24 25
25 // Android-specific implementation of the WebContentsView. 26 // Android-specific implementation of the WebContentsView.
26 class WebContentsViewAndroid : public WebContentsView, 27 class WebContentsViewAndroid : public WebContentsView,
27 public RenderViewHostDelegateView { 28 public RenderViewHostDelegateView,
29 public ui::ViewClient {
28 public: 30 public:
29 WebContentsViewAndroid(WebContentsImpl* web_contents, 31 WebContentsViewAndroid(WebContentsImpl* web_contents,
30 WebContentsViewDelegate* delegate); 32 WebContentsViewDelegate* delegate);
31 ~WebContentsViewAndroid() override; 33 ~WebContentsViewAndroid() override;
32 34
33 // Sets the interface to the view system. ContentViewCoreImpl is owned 35 // Sets the interface to the view system. ContentViewCoreImpl is owned
34 // by its Java ContentViewCore counterpart, whose lifetime is managed 36 // by its Java ContentViewCore counterpart, whose lifetime is managed
35 // by the UI frontend. 37 // by the UI frontend.
36 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 38 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
37 39
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 125
124 // Interface used to get notified of events from the synchronous compositor. 126 // Interface used to get notified of events from the synchronous compositor.
125 SynchronousCompositorClient* synchronous_compositor_client_; 127 SynchronousCompositorClient* synchronous_compositor_client_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 129 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
128 }; 130 };
129 131
130 } // namespace content 132 } // namespace content
131 133
132 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 134 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698