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

Side by Side Diff: content/public/renderer/render_view_observer.h

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // These match the RenderView methods. 72 // These match the RenderView methods.
73 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 73 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
74 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 74 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
75 75
76 // These match incoming IPCs. 76 // These match incoming IPCs.
77 virtual void ContextMenuAction(unsigned id) {} 77 virtual void ContextMenuAction(unsigned id) {}
78 virtual void Navigate(const GURL& url) {} 78 virtual void Navigate(const GURL& url) {}
79 virtual void ClosePage() {} 79 virtual void ClosePage() {}
80 80
81 // IPC::Channel::Listener implementation. 81 // IPC::Channel::Listener implementation.
82 virtual bool OnMessageReceived(const IPC::Message& message); 82 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
83 83
84 // This is called by the RenderView when it's going away so that this object 84 // This is called by the RenderView when it's going away so that this object
85 // can null out its pointer. 85 // can null out its pointer.
86 void RenderViewGone(); 86 void RenderViewGone();
87 87
88 protected: 88 protected:
89 explicit RenderViewObserver(RenderView* render_view); 89 explicit RenderViewObserver(RenderView* render_view);
90 virtual ~RenderViewObserver(); 90 virtual ~RenderViewObserver();
91 91
92 // IPC::Message::Sender implementation. 92 // IPC::Message::Sender implementation.
93 virtual bool Send(IPC::Message* message); 93 virtual bool Send(IPC::Message* message) OVERRIDE;
94 94
95 RenderView* render_view(); 95 RenderView* render_view();
96 int routing_id() { return routing_id_; } 96 int routing_id() { return routing_id_; }
97 97
98 private: 98 private:
99 RenderView* render_view_; 99 RenderView* render_view_;
100 // The routing ID of the associated RenderView. 100 // The routing ID of the associated RenderView.
101 int routing_id_; 101 int routing_id_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 103 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 108 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/ppapi_plugin/ppapi_webkit_thread.h ('k') | content/renderer/device_orientation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698