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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 353 return overscroll_controller_.get(); | 354 return overscroll_controller_.get(); |
| 354 } | 355 } |
| 355 | 356 |
| 356 protected: | 357 protected: |
| 357 ~RenderWidgetHostViewAura() override; | 358 ~RenderWidgetHostViewAura() override; |
| 358 | 359 |
| 359 // Exposed for tests. | 360 // Exposed for tests. |
| 360 aura::Window* window() { return window_; } | 361 aura::Window* window() { return window_; } |
| 361 SkColorType PreferredReadbackFormat() override; | 362 SkColorType PreferredReadbackFormat() override; |
| 362 DelegatedFrameHost* GetDelegatedFrameHost() const override; | 363 DelegatedFrameHost* GetDelegatedFrameHost() const override; |
| 364 const ui::MotionEventAura& pointer_state() { return pointer_state_; } | |
|
sadrul
2014/12/11 23:23:31
const method
tdresser
2015/01/05 21:51:09
Done.
| |
| 363 | 365 |
| 364 private: | 366 private: |
| 365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 366 PopupRetainsCaptureAfterMouseRelease); | 368 PopupRetainsCaptureAfterMouseRelease); |
| 367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); | 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); |
| 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); | 370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); |
| 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
| 370 TouchEventPositionsArentRounded); | 372 TouchEventPositionsArentRounded); |
| 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); | 373 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); |
| 372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); | 374 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 509 class EventFilterForPopupExit; | 511 class EventFilterForPopupExit; |
| 510 friend class EventFilterForPopupExit; | 512 friend class EventFilterForPopupExit; |
| 511 scoped_ptr<ui::EventHandler> event_filter_for_popup_exit_; | 513 scoped_ptr<ui::EventHandler> event_filter_for_popup_exit_; |
| 512 | 514 |
| 513 // True when content is being loaded. Used to show an hourglass cursor. | 515 // True when content is being loaded. Used to show an hourglass cursor. |
| 514 bool is_loading_; | 516 bool is_loading_; |
| 515 | 517 |
| 516 // The cursor for the page. This is passed up from the renderer. | 518 // The cursor for the page. This is passed up from the renderer. |
| 517 WebCursor current_cursor_; | 519 WebCursor current_cursor_; |
| 518 | 520 |
| 519 // The touch-event. Its touch-points are updated as necessary. A new | 521 // Stores the current state of the active pointers targeting this |
| 520 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is | 522 // object. |
| 521 // removed from the list on an ET_TOUCH_RELEASED event. | 523 ui::MotionEventAura pointer_state_; |
| 522 blink::WebTouchEvent touch_event_; | |
| 523 | 524 |
| 524 // The current text input type. | 525 // The current text input type. |
| 525 ui::TextInputType text_input_type_; | 526 ui::TextInputType text_input_type_; |
| 526 // The current text input mode corresponding to HTML5 inputmode attribute. | 527 // The current text input mode corresponding to HTML5 inputmode attribute. |
| 527 ui::TextInputMode text_input_mode_; | 528 ui::TextInputMode text_input_mode_; |
| 528 // The current text input flags. | 529 // The current text input flags. |
| 529 int text_input_flags_; | 530 int text_input_flags_; |
| 530 bool can_compose_inline_; | 531 bool can_compose_inline_; |
| 531 | 532 |
| 532 // Bounds for the selection. | 533 // Bounds for the selection. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 625 // compositing surface and showing the disambiguation popup. | 626 // compositing surface and showing the disambiguation popup. |
| 626 gfx::Vector2dF disambiguation_scroll_offset_; | 627 gfx::Vector2dF disambiguation_scroll_offset_; |
| 627 | 628 |
| 628 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 629 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 630 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 630 }; | 631 }; |
| 631 | 632 |
| 632 } // namespace content | 633 } // namespace content |
| 633 | 634 |
| 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 635 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |