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

Side by Side Diff: ui/views/view.h

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Address nits. Created 4 years, 2 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 | « ui/views/controls/textfield/textfield_model.cc ('k') | ui/views/view.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 UI_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class Background; 69 class Background;
70 class Border; 70 class Border;
71 class ContextMenuController; 71 class ContextMenuController;
72 class DragController; 72 class DragController;
73 class FocusManager; 73 class FocusManager;
74 class FocusTraversable; 74 class FocusTraversable;
75 class LayoutManager; 75 class LayoutManager;
76 class NativeViewAccessibility; 76 class NativeViewAccessibility;
77 class ScrollView; 77 class ScrollView;
78 class Widget; 78 class Widget;
79 class WordLookupClient;
79 80
80 namespace internal { 81 namespace internal {
81 class PreEventDispatchHandler; 82 class PreEventDispatchHandler;
82 class PostEventDispatchHandler; 83 class PostEventDispatchHandler;
83 class RootView; 84 class RootView;
84 } 85 }
85 86
86 ///////////////////////////////////////////////////////////////////////////// 87 /////////////////////////////////////////////////////////////////////////////
87 // 88 //
88 // View class 89 // View class
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 std::unique_ptr<ViewTargeter> SetEventTargeter( 711 std::unique_ptr<ViewTargeter> SetEventTargeter(
711 std::unique_ptr<ViewTargeter> targeter); 712 std::unique_ptr<ViewTargeter> targeter);
712 713
713 // Returns the ViewTargeter installed on |this| if one exists, 714 // Returns the ViewTargeter installed on |this| if one exists,
714 // otherwise returns the ViewTargeter installed on our root view. 715 // otherwise returns the ViewTargeter installed on our root view.
715 // The return value is guaranteed to be non-null. 716 // The return value is guaranteed to be non-null.
716 ViewTargeter* GetEffectiveViewTargeter() const; 717 ViewTargeter* GetEffectiveViewTargeter() const;
717 718
718 ViewTargeter* targeter() const { return targeter_.get(); } 719 ViewTargeter* targeter() const { return targeter_.get(); }
719 720
721 // Returns the WordLookupClient associated with this view.
722 virtual WordLookupClient* GetWordLookupClient();
723
720 // Overridden from ui::EventTarget: 724 // Overridden from ui::EventTarget:
721 bool CanAcceptEvent(const ui::Event& event) override; 725 bool CanAcceptEvent(const ui::Event& event) override;
722 ui::EventTarget* GetParentTarget() override; 726 ui::EventTarget* GetParentTarget() override;
723 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; 727 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override;
724 ui::EventTargeter* GetEventTargeter() override; 728 ui::EventTargeter* GetEventTargeter() override;
725 void ConvertEventToTarget(ui::EventTarget* target, 729 void ConvertEventToTarget(ui::EventTarget* target,
726 ui::LocatedEvent* event) override; 730 ui::LocatedEvent* event) override;
727 731
728 // Overridden from ui::EventHandler: 732 // Overridden from ui::EventHandler:
729 void OnKeyEvent(ui::KeyEvent* event) override; 733 void OnKeyEvent(ui::KeyEvent* event) override;
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 // Belongs to this view, but it's reference-counted on some platforms 1568 // Belongs to this view, but it's reference-counted on some platforms
1565 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1569 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1566 NativeViewAccessibility* native_view_accessibility_; 1570 NativeViewAccessibility* native_view_accessibility_;
1567 1571
1568 DISALLOW_COPY_AND_ASSIGN(View); 1572 DISALLOW_COPY_AND_ASSIGN(View);
1569 }; 1573 };
1570 1574
1571 } // namespace views 1575 } // namespace views
1572 1576
1573 #endif // UI_VIEWS_VIEW_H_ 1577 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield_model.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698