OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |