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

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

Issue 510793003: Remove ui::TouchEvent -> blink::WebTouchEvent conversion methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken test. Created 5 years, 11 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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/geometry/insets.h" 36 #include "ui/gfx/geometry/insets.h"
36 #include "ui/gfx/geometry/rect.h" 37 #include "ui/gfx/geometry/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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return overscroll_controller_.get(); 356 return overscroll_controller_.get();
356 } 357 }
357 358
358 protected: 359 protected:
359 ~RenderWidgetHostViewAura() override; 360 ~RenderWidgetHostViewAura() override;
360 361
361 // Exposed for tests. 362 // Exposed for tests.
362 aura::Window* window() { return window_; } 363 aura::Window* window() { return window_; }
363 SkColorType PreferredReadbackFormat() override; 364 SkColorType PreferredReadbackFormat() override;
364 DelegatedFrameHost* GetDelegatedFrameHost() const override; 365 DelegatedFrameHost* GetDelegatedFrameHost() const override;
366 const ui::MotionEventAura& pointer_state() const { return pointer_state_; }
365 367
366 private: 368 private:
367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
368 PopupRetainsCaptureAfterMouseRelease); 370 PopupRetainsCaptureAfterMouseRelease);
369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText);
370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); 372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState);
371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 373 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
372 TouchEventPositionsArentRounded); 374 TouchEventPositionsArentRounded);
373 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); 375 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync);
374 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); 376 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 class EventFilterForPopupExit; 513 class EventFilterForPopupExit;
512 friend class EventFilterForPopupExit; 514 friend class EventFilterForPopupExit;
513 scoped_ptr<ui::EventHandler> event_filter_for_popup_exit_; 515 scoped_ptr<ui::EventHandler> event_filter_for_popup_exit_;
514 516
515 // True when content is being loaded. Used to show an hourglass cursor. 517 // True when content is being loaded. Used to show an hourglass cursor.
516 bool is_loading_; 518 bool is_loading_;
517 519
518 // The cursor for the page. This is passed up from the renderer. 520 // The cursor for the page. This is passed up from the renderer.
519 WebCursor current_cursor_; 521 WebCursor current_cursor_;
520 522
521 // The touch-event. Its touch-points are updated as necessary. A new 523 // Stores the current state of the active pointers targeting this
522 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is 524 // object.
523 // removed from the list on an ET_TOUCH_RELEASED event. 525 ui::MotionEventAura pointer_state_;
524 blink::WebTouchEvent touch_event_;
525 526
526 // The current text input type. 527 // The current text input type.
527 ui::TextInputType text_input_type_; 528 ui::TextInputType text_input_type_;
528 // The current text input mode corresponding to HTML5 inputmode attribute. 529 // The current text input mode corresponding to HTML5 inputmode attribute.
529 ui::TextInputMode text_input_mode_; 530 ui::TextInputMode text_input_mode_;
530 // The current text input flags. 531 // The current text input flags.
531 int text_input_flags_; 532 int text_input_flags_;
532 bool can_compose_inline_; 533 bool can_compose_inline_;
533 534
534 // Bounds for the selection. 535 // Bounds for the selection.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // compositing surface and showing the disambiguation popup. 638 // compositing surface and showing the disambiguation popup.
638 gfx::Vector2dF disambiguation_scroll_offset_; 639 gfx::Vector2dF disambiguation_scroll_offset_;
639 640
640 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 641 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
641 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 642 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
642 }; 643 };
643 644
644 } // namespace content 645 } // namespace content
645 646
646 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 647 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698