| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // While the mouse is locked, the cursor is hidden from the user. Mouse events | 456 // While the mouse is locked, the cursor is hidden from the user. Mouse events |
| 457 // are still generated. However, the position they report is the last known | 457 // are still generated. However, the position they report is the last known |
| 458 // mouse position just as mouse lock was entered; the movement they report | 458 // mouse position just as mouse lock was entered; the movement they report |
| 459 // indicates what the change in position of the mouse would be had it not been | 459 // indicates what the change in position of the mouse would be had it not been |
| 460 // locked. | 460 // locked. |
| 461 bool mouse_locked_; | 461 bool mouse_locked_; |
| 462 | 462 |
| 463 // Whether we are showing a context menu. | 463 // Whether we are showing a context menu. |
| 464 bool showing_context_menu_; | 464 bool showing_context_menu_; |
| 465 | 465 |
| 466 // TODO(ekaramad): In aura, text selection tracking for IME is done through the | |
| 467 // TextInputManager. We still need the following variables for other platforms. | |
| 468 // Remove them when tracking is done by TextInputManager on all platforms | |
| 469 // (https://crbug.com/578168 and https://crbug.com/602427). | |
| 470 #if !defined(USE_AURA) | |
| 471 // A buffer containing the text inside and around the current selection range. | |
| 472 base::string16 selection_text_; | |
| 473 | |
| 474 // The offset of the text stored in |selection_text_| relative to the start of | |
| 475 // the web page. | |
| 476 size_t selection_text_offset_; | |
| 477 | |
| 478 // The current selection range relative to the start of the web page. | |
| 479 gfx::Range selection_range_; | |
| 480 #endif | |
| 481 | |
| 482 // The scale factor of the display the renderer is currently on. | 466 // The scale factor of the display the renderer is currently on. |
| 483 float current_device_scale_factor_; | 467 float current_device_scale_factor_; |
| 484 | 468 |
| 485 // The orientation of the display the renderer is currently on. | 469 // The orientation of the display the renderer is currently on. |
| 486 display::Display::Rotation current_display_rotation_; | 470 display::Display::Rotation current_display_rotation_; |
| 487 | 471 |
| 488 // A reference to current TextInputManager instance this RWHV is registered | 472 // A reference to current TextInputManager instance this RWHV is registered |
| 489 // with. This is initially nullptr until the first time the view calls | 473 // with. This is initially nullptr until the first time the view calls |
| 490 // GetTextInputManager(). It also becomes nullptr when TextInputManager is | 474 // GetTextInputManager(). It also becomes nullptr when TextInputManager is |
| 491 // destroyed before the RWHV is destroyed. | 475 // destroyed before the RWHV is destroyed. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 503 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 487 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 504 | 488 |
| 505 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 489 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 506 | 490 |
| 507 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 491 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 508 }; | 492 }; |
| 509 | 493 |
| 510 } // namespace content | 494 } // namespace content |
| 511 | 495 |
| 512 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 496 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |