| 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 231 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 232 | 232 |
| 233 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); | 233 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); |
| 234 | 234 |
| 235 void SetSynchronousCompositorClient(SynchronousCompositorClient* client); | 235 void SetSynchronousCompositorClient(SynchronousCompositorClient* client); |
| 236 | 236 |
| 237 SynchronousCompositorClient* synchronous_compositor_client() const { | 237 SynchronousCompositorClient* synchronous_compositor_client() const { |
| 238 return synchronous_compositor_client_; | 238 return synchronous_compositor_client_; |
| 239 } | 239 } |
| 240 | 240 |
| 241 void OnOverscrollRefreshHandlerSet(); |
| 242 |
| 241 static void OnContextLost(); | 243 static void OnContextLost(); |
| 242 | 244 |
| 243 // TextInputManager::Observer overrides. | 245 // TextInputManager::Observer overrides. |
| 244 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 246 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 245 RenderWidgetHostViewBase* updated_view, | 247 RenderWidgetHostViewBase* updated_view, |
| 246 bool did_change_state) override; | 248 bool did_change_state) override; |
| 247 | 249 |
| 248 private: | 250 private: |
| 249 void RunAckCallbacks(); | 251 void RunAckCallbacks(); |
| 250 | 252 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 void StartObservingRootWindow(); | 297 void StartObservingRootWindow(); |
| 296 void StopObservingRootWindow(); | 298 void StopObservingRootWindow(); |
| 297 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); | 299 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); |
| 298 bool Animate(base::TimeTicks frame_time); | 300 bool Animate(base::TimeTicks frame_time); |
| 299 void RequestDisallowInterceptTouchEvent(); | 301 void RequestDisallowInterceptTouchEvent(); |
| 300 | 302 |
| 301 bool SyncCompositorOnMessageReceived(const IPC::Message& message); | 303 bool SyncCompositorOnMessageReceived(const IPC::Message& message); |
| 302 | 304 |
| 303 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); | 305 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); |
| 304 | 306 |
| 307 void CreateOverscrollControllerIfPossible(); |
| 308 |
| 305 // The model object. | 309 // The model object. |
| 306 RenderWidgetHostImpl* host_; | 310 RenderWidgetHostImpl* host_; |
| 307 | 311 |
| 308 // Used to control action dispatch at the next |OnVSync()| call. | 312 // Used to control action dispatch at the next |OnVSync()| call. |
| 309 uint32_t outstanding_vsync_requests_; | 313 uint32_t outstanding_vsync_requests_; |
| 310 | 314 |
| 311 bool is_showing_; | 315 bool is_showing_; |
| 312 | 316 |
| 313 // Window-specific bits that affect widget visibility. | 317 // Window-specific bits that affect widget visibility. |
| 314 bool is_window_visible_; | 318 bool is_window_visible_; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 gfx::Vector2dF last_scroll_offset_; | 385 gfx::Vector2dF last_scroll_offset_; |
| 382 | 386 |
| 383 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 387 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 384 | 388 |
| 385 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 389 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 386 }; | 390 }; |
| 387 | 391 |
| 388 } // namespace content | 392 } // namespace content |
| 389 | 393 |
| 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |