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

Side by Side Diff: content/public/browser/render_view_host_observer.h

Issue 12210082: content: convert accessibility notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 10 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) 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 CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ipc/ipc_listener.h" 9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Invoked when the RenderViewHost is being destroyed. Gives subclasses a 35 // Invoked when the RenderViewHost is being destroyed. Gives subclasses a
36 // chance to cleanup. The base implementation will delete the object. 36 // chance to cleanup. The base implementation will delete the object.
37 // |render_view_host| is passed as an argument since render_view_host() will 37 // |render_view_host| is passed as an argument since render_view_host() will
38 // return NULL once this method enters. 38 // return NULL once this method enters.
39 virtual void RenderViewHostDestroyed(RenderViewHost* render_view_host); 39 virtual void RenderViewHostDestroyed(RenderViewHost* render_view_host);
40 40
41 // Notifies that a navigation is starting. 41 // Notifies that a navigation is starting.
42 virtual void Navigate(const GURL& url); 42 virtual void Navigate(const GURL& url);
43 43
44 // Accessibility notifications.
45 virtual void AccessibilityLayoutComplete();
dmazzoni 2013/02/08 15:55:21 Perhaps a single method with an argument would be
46 virtual void AccessibilityLoadComplete();
47
44 // IPC::Listener implementation. 48 // IPC::Listener implementation.
45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
46 50
47 // IPC::Sender implementation. 51 // IPC::Sender implementation.
48 virtual bool Send(IPC::Message* message) OVERRIDE; 52 virtual bool Send(IPC::Message* message) OVERRIDE;
49 53
50 RenderViewHost* render_view_host() const; 54 RenderViewHost* render_view_host() const;
51 int routing_id() { return routing_id_; } 55 int routing_id() { return routing_id_; }
52 56
53 private: 57 private:
54 friend class RenderViewHostImpl; 58 friend class RenderViewHostImpl;
55 59
56 // Invoked from RenderViewHost. Invokes RenderViewHostDestroyed and NULL out 60 // Invoked from RenderViewHost. Invokes RenderViewHostDestroyed and NULL out
57 // |render_view_host_|. 61 // |render_view_host_|.
58 void RenderViewHostDestruction(); 62 void RenderViewHostDestruction();
59 63
60 RenderViewHostImpl* render_view_host_; 64 RenderViewHostImpl* render_view_host_;
61 65
62 // The routing ID of the associated RenderViewHost. 66 // The routing ID of the associated RenderViewHost.
63 int routing_id_; 67 int routing_id_;
64 68
65 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver); 69 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver);
66 }; 70 };
67 71
68 } // namespace content 72 } // namespace content
69 73
70 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_ 74 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/notification_types.h ('k') | content/public/browser/render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698