OLD | NEW |
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" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 const gfx::Point& screen_location); | 103 const gfx::Point& screen_location); |
104 void OnDragExited(); | 104 void OnDragExited(); |
105 void OnPerformDrop(DropData* drop_data, | 105 void OnPerformDrop(DropData* drop_data, |
106 const gfx::Point& location, | 106 const gfx::Point& location, |
107 const gfx::Point& screen_location); | 107 const gfx::Point& screen_location); |
108 void OnDragEnded(); | 108 void OnDragEnded(); |
109 | 109 |
110 // ui::ViewClient implementation. | 110 // ui::ViewClient implementation. |
111 bool OnTouchEvent(const ui::MotionEventAndroid& event, | 111 bool OnTouchEvent(const ui::MotionEventAndroid& event, |
112 bool for_touch_handle) override; | 112 bool for_touch_handle) override; |
| 113 void OnPhysicalBackingSizeChanged() override; |
113 | 114 |
114 private: | 115 private: |
115 // The WebContents whose contents we display. | 116 // The WebContents whose contents we display. |
116 WebContentsImpl* web_contents_; | 117 WebContentsImpl* web_contents_; |
117 | 118 |
118 // ContentViewCoreImpl is our interface to the view system. | 119 // ContentViewCoreImpl is our interface to the view system. |
119 ContentViewCoreImpl* content_view_core_; | 120 ContentViewCoreImpl* content_view_core_; |
120 | 121 |
121 // Handles "overscroll to refresh" events | 122 // Handles "overscroll to refresh" events |
122 std::unique_ptr<ui::OverscrollRefreshHandler> overscroll_refresh_handler_; | 123 std::unique_ptr<ui::OverscrollRefreshHandler> overscroll_refresh_handler_; |
123 | 124 |
124 // Interface for extensions to WebContentsView. Used to show the context menu. | 125 // Interface for extensions to WebContentsView. Used to show the context menu. |
125 std::unique_ptr<WebContentsViewDelegate> delegate_; | 126 std::unique_ptr<WebContentsViewDelegate> delegate_; |
126 | 127 |
127 // The native view associated with the contents of the web. | 128 // The native view associated with the contents of the web. |
128 ui::ViewAndroid view_; | 129 ui::ViewAndroid view_; |
129 | 130 |
130 // Interface used to get notified of events from the synchronous compositor. | 131 // Interface used to get notified of events from the synchronous compositor. |
131 SynchronousCompositorClient* synchronous_compositor_client_; | 132 SynchronousCompositorClient* synchronous_compositor_client_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); | 134 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace content | 137 } // namespace content |
137 | 138 |
138 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ | 139 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ |
OLD | NEW |