Chromium Code Reviews| 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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
| 25 #include "content/common/cursors/webcursor.h" | 25 #include "content/common/cursors/webcursor.h" |
| 26 #include "third_party/skia/include/core/SkRegion.h" | 26 #include "third_party/skia/include/core/SkRegion.h" |
| 27 #include "ui/aura/client/cursor_client_observer.h" | 27 #include "ui/aura/client/cursor_client_observer.h" |
| 28 #include "ui/aura/client/focus_change_observer.h" | 28 #include "ui/aura/client/focus_change_observer.h" |
| 29 #include "ui/aura/window_delegate.h" | 29 #include "ui/aura/window_delegate.h" |
| 30 #include "ui/aura/window_tree_host_observer.h" | 30 #include "ui/aura/window_tree_host_observer.h" |
| 31 #include "ui/base/ime/text_input_client.h" | 31 #include "ui/base/ime/text_input_client.h" |
| 32 #include "ui/base/touch/selection_bound.h" | 32 #include "ui/base/touch/selection_bound.h" |
| 33 #include "ui/base/touch/touch_editing_controller.h" | 33 #include "ui/base/touch/touch_editing_controller.h" |
| 34 #include "ui/events/gestures/motion_event_aura.h" | |
| 34 #include "ui/gfx/display_observer.h" | 35 #include "ui/gfx/display_observer.h" |
| 35 #include "ui/gfx/insets.h" | 36 #include "ui/gfx/insets.h" |
| 36 #include "ui/gfx/rect.h" | 37 #include "ui/gfx/rect.h" |
| 37 #include "ui/wm/public/activation_change_observer.h" | 38 #include "ui/wm/public/activation_change_observer.h" |
| 38 #include "ui/wm/public/activation_delegate.h" | 39 #include "ui/wm/public/activation_delegate.h" |
| 39 | 40 |
| 40 namespace aura { | 41 namespace aura { |
| 41 class WindowTracker; | 42 class WindowTracker; |
| 42 namespace client { | 43 namespace client { |
| 43 class ScopedTooltipDisabler; | 44 class ScopedTooltipDisabler; |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 512 | 513 |
| 513 // True when content is being loaded. Used to show an hourglass cursor. | 514 // True when content is being loaded. Used to show an hourglass cursor. |
| 514 bool is_loading_; | 515 bool is_loading_; |
| 515 | 516 |
| 516 // The cursor for the page. This is passed up from the renderer. | 517 // The cursor for the page. This is passed up from the renderer. |
| 517 WebCursor current_cursor_; | 518 WebCursor current_cursor_; |
| 518 | 519 |
| 519 // The touch-event. Its touch-points are updated as necessary. A new | 520 // The touch-event. Its touch-points are updated as necessary. A new |
| 520 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is | 521 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is |
| 521 // removed from the list on an ET_TOUCH_RELEASED event. | 522 // removed from the list on an ET_TOUCH_RELEASED event. |
| 522 blink::WebTouchEvent touch_event_; | 523 blink::WebTouchEvent touch_event_; |
|
sadrul
2014/12/11 15:55:31
We shouldn't need |touch_event_| anymore.
tdresser
2014/12/11 21:10:38
Done.
| |
| 523 | 524 |
| 525 // Used to produce |touch_event_|. | |
| 526 ui::MotionEventAura pointer_state_; | |
| 527 | |
| 524 // The current text input type. | 528 // The current text input type. |
| 525 ui::TextInputType text_input_type_; | 529 ui::TextInputType text_input_type_; |
| 526 // The current text input mode corresponding to HTML5 inputmode attribute. | 530 // The current text input mode corresponding to HTML5 inputmode attribute. |
| 527 ui::TextInputMode text_input_mode_; | 531 ui::TextInputMode text_input_mode_; |
| 528 // The current text input flags. | 532 // The current text input flags. |
| 529 int text_input_flags_; | 533 int text_input_flags_; |
| 530 bool can_compose_inline_; | 534 bool can_compose_inline_; |
| 531 | 535 |
| 532 // Bounds for the selection. | 536 // Bounds for the selection. |
| 533 ui::SelectionBound selection_anchor_; | 537 ui::SelectionBound selection_anchor_; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 625 // compositing surface and showing the disambiguation popup. | 629 // compositing surface and showing the disambiguation popup. |
| 626 gfx::Vector2dF disambiguation_scroll_offset_; | 630 gfx::Vector2dF disambiguation_scroll_offset_; |
| 627 | 631 |
| 628 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 632 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 633 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 630 }; | 634 }; |
| 631 | 635 |
| 632 } // namespace content | 636 } // namespace content |
| 633 | 637 |
| 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 638 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |