| 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_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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 // While the mouse is locked, the cursor is hidden from the user. Mouse events | 460 // While the mouse is locked, the cursor is hidden from the user. Mouse events |
| 461 // are still generated. However, the position they report is the last known | 461 // are still generated. However, the position they report is the last known |
| 462 // mouse position just as mouse lock was entered; the movement they report | 462 // mouse position just as mouse lock was entered; the movement they report |
| 463 // indicates what the change in position of the mouse would be had it not been | 463 // indicates what the change in position of the mouse would be had it not been |
| 464 // locked. | 464 // locked. |
| 465 bool mouse_locked_; | 465 bool mouse_locked_; |
| 466 | 466 |
| 467 // The scale factor of the display the renderer is currently on. | 467 // The scale factor of the display the renderer is currently on. |
| 468 float current_device_scale_factor_; | 468 float current_device_scale_factor_; |
| 469 | 469 |
| 470 // The color space of the display the renderer is currently on. |
| 471 gfx::ColorSpace current_display_color_space_; |
| 472 |
| 470 // The orientation of the display the renderer is currently on. | 473 // The orientation of the display the renderer is currently on. |
| 471 display::Display::Rotation current_display_rotation_; | 474 display::Display::Rotation current_display_rotation_; |
| 472 | 475 |
| 473 // A reference to current TextInputManager instance this RWHV is registered | 476 // A reference to current TextInputManager instance this RWHV is registered |
| 474 // with. This is initially nullptr until the first time the view calls | 477 // with. This is initially nullptr until the first time the view calls |
| 475 // GetTextInputManager(). It also becomes nullptr when TextInputManager is | 478 // GetTextInputManager(). It also becomes nullptr when TextInputManager is |
| 476 // destroyed before the RWHV is destroyed. | 479 // destroyed before the RWHV is destroyed. |
| 477 TextInputManager* text_input_manager_; | 480 TextInputManager* text_input_manager_; |
| 478 | 481 |
| 479 const bool wheel_scroll_latching_enabled_; | 482 const bool wheel_scroll_latching_enabled_; |
| 480 | 483 |
| 481 WebContentsAccessibility* web_contents_accessibility_; | 484 WebContentsAccessibility* web_contents_accessibility_; |
| 482 | 485 |
| 483 private: | 486 private: |
| 484 gfx::Rect current_display_area_; | 487 gfx::Rect current_display_area_; |
| 485 | 488 |
| 486 uint32_t renderer_frame_number_; | 489 uint32_t renderer_frame_number_; |
| 487 | 490 |
| 488 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 491 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 489 | 492 |
| 490 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 493 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 491 | 494 |
| 492 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 495 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 493 }; | 496 }; |
| 494 | 497 |
| 495 } // namespace content | 498 } // namespace content |
| 496 | 499 |
| 497 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |