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

Side by Side Diff: chrome/renderer/page_click_tracker.h

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_PAGE_CLICK_TRACKER_H_ 5 #ifndef CHROME_RENDERER_PAGE_CLICK_TRACKER_H_
6 #define CHROME_RENDERER_PAGE_CLICK_TRACKER_H_ 6 #define CHROME_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 private: 44 private:
45 // RenderView::Observer implementation. 45 // RenderView::Observer implementation.
46 virtual bool OnMessageReceived(const IPC::Message& message); 46 virtual bool OnMessageReceived(const IPC::Message& message);
47 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame); 47 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame);
48 virtual void FrameDetached(WebKit::WebFrame* frame); 48 virtual void FrameDetached(WebKit::WebFrame* frame);
49 49
50 // WebKit::WebDOMEventListener implementation. 50 // WebKit::WebDOMEventListener implementation.
51 virtual void handleEvent(const WebKit::WebDOMEvent& event); 51 virtual void handleEvent(const WebKit::WebDOMEvent& event);
52 52
53 // Called after the mouse event |event| has been processed by WebKit. 53 // Called after the mouse event |event| has been processed by WebKit.
54 void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); 54 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event);
55 55
56 // Returns the currently focused node in the associated render view. 56 // Returns the currently focused node in the associated render view.
57 // That node may be null. 57 // That node may be null.
58 WebKit::WebNode GetFocusedNode(); 58 WebKit::WebNode GetFocusedNode();
59 59
60 // The last node that was clicked and had focus. 60 // The last node that was clicked and had focus.
61 WebKit::WebNode last_node_clicked_; 61 WebKit::WebNode last_node_clicked_;
62 62
63 // Whether the last clicked node had focused before it was clicked. 63 // Whether the last clicked node had focused before it was clicked.
64 bool was_focused_; 64 bool was_focused_;
65 65
66 // The frames we are listening to for mouse events. 66 // The frames we are listening to for mouse events.
67 typedef std::vector<WebKit::WebFrame*> FrameList; 67 typedef std::vector<WebKit::WebFrame*> FrameList;
68 FrameList tracked_frames_; 68 FrameList tracked_frames_;
69 69
70 // The listener getting the actual notifications. 70 // The listener getting the actual notifications.
71 ObserverList<PageClickListener> listeners_; 71 ObserverList<PageClickListener> listeners_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(PageClickTracker); 73 DISALLOW_COPY_AND_ASSIGN(PageClickTracker);
74 }; 74 };
75 75
76 #endif // CHROME_RENDERER_PAGE_CLICK_TRACKER_H_ 76 #endif // CHROME_RENDERER_PAGE_CLICK_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698