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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2528823002: Separate SwipeRefreshHandler and ContentViewCore (Closed)
Patch Set: Respond to more comments, all test cases should pass now Created 4 years 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_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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); 230 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip);
231 231
232 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); 232 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata);
233 233
234 void SetSynchronousCompositorClient(SynchronousCompositorClient* client); 234 void SetSynchronousCompositorClient(SynchronousCompositorClient* client);
235 235
236 SynchronousCompositorClient* synchronous_compositor_client() const { 236 SynchronousCompositorClient* synchronous_compositor_client() const {
237 return synchronous_compositor_client_; 237 return synchronous_compositor_client_;
238 } 238 }
239 239
240 void OnOverscrollRefreshHandlerSet();
241
240 static void OnContextLost(); 242 static void OnContextLost();
241 243
242 // TextInputManager::Observer overrides. 244 // TextInputManager::Observer overrides.
243 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, 245 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager,
244 RenderWidgetHostViewBase* updated_view, 246 RenderWidgetHostViewBase* updated_view,
245 bool did_change_state) override; 247 bool did_change_state) override;
246 248
247 private: 249 private:
248 void RunAckCallbacks(); 250 void RunAckCallbacks();
249 251
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 void StartObservingRootWindow(); 296 void StartObservingRootWindow();
295 void StopObservingRootWindow(); 297 void StopObservingRootWindow();
296 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); 298 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period);
297 bool Animate(base::TimeTicks frame_time); 299 bool Animate(base::TimeTicks frame_time);
298 void RequestDisallowInterceptTouchEvent(); 300 void RequestDisallowInterceptTouchEvent();
299 301
300 bool SyncCompositorOnMessageReceived(const IPC::Message& message); 302 bool SyncCompositorOnMessageReceived(const IPC::Message& message);
301 303
302 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); 304 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event);
303 305
306 void CreateOverscrollControllerIfPossible();
307
304 // The model object. 308 // The model object.
305 RenderWidgetHostImpl* host_; 309 RenderWidgetHostImpl* host_;
306 310
307 // Used to control action dispatch at the next |OnVSync()| call. 311 // Used to control action dispatch at the next |OnVSync()| call.
308 uint32_t outstanding_vsync_requests_; 312 uint32_t outstanding_vsync_requests_;
309 313
310 bool is_showing_; 314 bool is_showing_;
311 315
312 // Window-specific bits that affect widget visibility. 316 // Window-specific bits that affect widget visibility.
313 bool is_window_visible_; 317 bool is_window_visible_;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 gfx::Vector2dF last_scroll_offset_; 381 gfx::Vector2dF last_scroll_offset_;
378 382
379 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 383 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
380 384
381 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 385 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
382 }; 386 };
383 387
384 } // namespace content 388 } // namespace content
385 389
386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698