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

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

Issue 2882443002: Tiimer based phase info generated for mouse wheel events. (Closed)
Patch Set: review comments addressed. Created 3 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) 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_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // TextInputManager if it is destroyed or if the TextInputManager itself is 409 // TextInputManager if it is destroyed or if the TextInputManager itself is
410 // destroyed. The unregistration of the RWHV from TextInputManager is 410 // destroyed. The unregistration of the RWHV from TextInputManager is
411 // necessary and must be done by explicitly calling 411 // necessary and must be done by explicitly calling
412 // TextInputManager::Unregister. 412 // TextInputManager::Unregister.
413 // It is safer to use this method rather than directly dereferencing 413 // It is safer to use this method rather than directly dereferencing
414 // |text_input_manager_|. 414 // |text_input_manager_|.
415 TextInputManager* GetTextInputManager(); 415 TextInputManager* GetTextInputManager();
416 416
417 bool is_fullscreen() { return is_fullscreen_; } 417 bool is_fullscreen() { return is_fullscreen_; }
418 418
419 bool wheel_scroll_latching_enabled() {
420 return wheel_scroll_latching_enabled_;
421 }
422
419 // Exposed for testing. 423 // Exposed for testing.
420 virtual bool IsChildFrameForTesting() const; 424 virtual bool IsChildFrameForTesting() const;
421 virtual cc::SurfaceId SurfaceIdForTesting() const; 425 virtual cc::SurfaceId SurfaceIdForTesting() const;
422 426
423 protected: 427 protected:
424 // Interface class only, do not construct. 428 // Interface class only, do not construct.
425 RenderWidgetHostViewBase(); 429 RenderWidgetHostViewBase();
426 430
427 void NotifyObserversAboutShutdown(); 431 void NotifyObserversAboutShutdown();
428 432
(...skipping 19 matching lines...) Expand all
448 452
449 // The orientation of the display the renderer is currently on. 453 // The orientation of the display the renderer is currently on.
450 display::Display::Rotation current_display_rotation_; 454 display::Display::Rotation current_display_rotation_;
451 455
452 // A reference to current TextInputManager instance this RWHV is registered 456 // A reference to current TextInputManager instance this RWHV is registered
453 // with. This is initially nullptr until the first time the view calls 457 // with. This is initially nullptr until the first time the view calls
454 // GetTextInputManager(). It also becomes nullptr when TextInputManager is 458 // GetTextInputManager(). It also becomes nullptr when TextInputManager is
455 // destroyed before the RWHV is destroyed. 459 // destroyed before the RWHV is destroyed.
456 TextInputManager* text_input_manager_; 460 TextInputManager* text_input_manager_;
457 461
462 const bool wheel_scroll_latching_enabled_;
463
458 private: 464 private:
459 void FlushInput(); 465 void FlushInput();
460 466
461 gfx::Rect current_display_area_; 467 gfx::Rect current_display_area_;
462 468
463 uint32_t renderer_frame_number_; 469 uint32_t renderer_frame_number_;
464 470
465 base::OneShotTimer flush_input_timer_; 471 base::OneShotTimer flush_input_timer_;
466 472
467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 473 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
468 474
469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 475 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
470 476
471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 477 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
472 }; 478 };
473 479
474 } // namespace content 480 } // namespace content
475 481
476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 482 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698