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

Side by Side Diff: components/autofill/content/renderer/page_click_tracker.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 class PageClickTracker : public content::RenderViewObserver { 27 class PageClickTracker : public content::RenderViewObserver {
28 public: 28 public:
29 // The |listener| will be notified when an element is clicked. It must 29 // The |listener| will be notified when an element is clicked. It must
30 // outlive this class. 30 // outlive this class.
31 PageClickTracker(content::RenderView* render_view, 31 PageClickTracker(content::RenderView* render_view,
32 PageClickListener* listener); 32 PageClickListener* listener);
33 virtual ~PageClickTracker(); 33 virtual ~PageClickTracker();
34 34
35 private: 35 private:
36 // RenderView::Observer implementation. 36 // RenderView::Observer implementation.
37 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) OVERRIDE; 37 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) override;
38 virtual void DidHandleGestureEvent( 38 virtual void DidHandleGestureEvent(
39 const blink::WebGestureEvent& event) OVERRIDE; 39 const blink::WebGestureEvent& event) override;
40 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; 40 virtual void FocusedNodeChanged(const blink::WebNode& node) override;
41 41
42 // Called there is a tap or click at |x|, |y|. 42 // Called there is a tap or click at |x|, |y|.
43 void PotentialActivationAt(int x, int y); 43 void PotentialActivationAt(int x, int y);
44 44
45 // Sets |was_focused_before_now_| to true. 45 // Sets |was_focused_before_now_| to true.
46 void SetWasFocused(); 46 void SetWasFocused();
47 47
48 // This is set to false when the focus changes, then set back to true soon 48 // This is set to false when the focus changes, then set back to true soon
49 // afterwards. This helps track whether an event happened after a node was 49 // afterwards. This helps track whether an event happened after a node was
50 // already focused, or if it caused the focus to change. 50 // already focused, or if it caused the focus to change.
51 bool was_focused_before_now_; 51 bool was_focused_before_now_;
52 52
53 // The listener getting the actual notifications. 53 // The listener getting the actual notifications.
54 PageClickListener* listener_; 54 PageClickListener* listener_;
55 55
56 base::WeakPtrFactory<PageClickTracker> weak_ptr_factory_; 56 base::WeakPtrFactory<PageClickTracker> weak_ptr_factory_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PageClickTracker); 58 DISALLOW_COPY_AND_ASSIGN(PageClickTracker);
59 }; 59 };
60 60
61 } // namespace autofill 61 } // namespace autofill
62 62
63 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ 63 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.h ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698