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

Side by Side Diff: ui/views/widget/root_view_targeter.h

Issue 686493002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/widget/root_view.cc ('k') | ui/views/widget/root_view_unittest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WIDGET_ROOT_VIEW_TARGETER_H_ 5 #ifndef UI_VIEWS_WIDGET_ROOT_VIEW_TARGETER_H_
6 #define UI_VIEWS_WIDGET_ROOT_VIEW_TARGETER_H_ 6 #define UI_VIEWS_WIDGET_ROOT_VIEW_TARGETER_H_
7 7
8 #include "ui/views/view_targeter.h" 8 #include "ui/views/view_targeter.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 namespace internal { 13 namespace internal {
14 class RootView; 14 class RootView;
15 } // namespace internal 15 } // namespace internal
16 16
17 class View; 17 class View;
18 class ViewTargeterDelegate; 18 class ViewTargeterDelegate;
19 19
20 // A derived class of ViewTargeter that defines targeting logic for cases 20 // A derived class of ViewTargeter that defines targeting logic for cases
21 // needing to access the members of RootView. For example, when determining the 21 // needing to access the members of RootView. For example, when determining the
22 // target of a gesture event, we need to know if a previous gesture has already 22 // target of a gesture event, we need to know if a previous gesture has already
23 // established the View to which all subsequent gestures should be targeted. 23 // established the View to which all subsequent gestures should be targeted.
24 class VIEWS_EXPORT RootViewTargeter : public ViewTargeter { 24 class VIEWS_EXPORT RootViewTargeter : public ViewTargeter {
25 public: 25 public:
26 RootViewTargeter(ViewTargeterDelegate* delegate, 26 RootViewTargeter(ViewTargeterDelegate* delegate,
27 internal::RootView* root_view); 27 internal::RootView* root_view);
28 virtual ~RootViewTargeter(); 28 ~RootViewTargeter() override;
29 29
30 private: 30 private:
31 // ViewTargeter: 31 // ViewTargeter:
32 virtual View* FindTargetForGestureEvent( 32 View* FindTargetForGestureEvent(View* root,
33 View* root, 33 const ui::GestureEvent& gesture) override;
34 const ui::GestureEvent& gesture) override; 34 ui::EventTarget* FindNextBestTargetForGestureEvent(
35 virtual ui::EventTarget* FindNextBestTargetForGestureEvent(
36 ui::EventTarget* previous_target, 35 ui::EventTarget* previous_target,
37 const ui::GestureEvent& gesture) override; 36 const ui::GestureEvent& gesture) override;
38 37
39 // A pointer to the RootView on which |this| is installed. 38 // A pointer to the RootView on which |this| is installed.
40 internal::RootView* root_view_; 39 internal::RootView* root_view_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(RootViewTargeter); 41 DISALLOW_COPY_AND_ASSIGN(RootViewTargeter);
43 }; 42 };
44 43
45 } // namespace views 44 } // namespace views
46 45
47 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_TARGETER_H_ 46 #endif // UI_VIEWS_WIDGET_ROOT_VIEW_TARGETER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/root_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698