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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // | 79 // |
80 // Implementation note: Historically, RenderViewHost was-a RenderWidgetHost, | 80 // Implementation note: Historically, RenderViewHost was-a RenderWidgetHost, |
81 // and shared its IPC channel and its routing ID. Although this inheritance is | 81 // and shared its IPC channel and its routing ID. Although this inheritance is |
82 // no longer so, the IPC channel is currently still shared. Expect this to | 82 // no longer so, the IPC channel is currently still shared. Expect this to |
83 // change. | 83 // change. |
84 virtual int GetRoutingID() const = 0; | 84 virtual int GetRoutingID() const = 0; |
85 | 85 |
86 // Returns the main frame for this render view. | 86 // Returns the main frame for this render view. |
87 virtual RenderFrameHost* GetMainFrame() = 0; | 87 virtual RenderFrameHost* GetMainFrame() = 0; |
88 | 88 |
89 // Tell the render view to enable a set of javascript bindings. The argument | |
90 // should be a combination of values from BindingsPolicy. | |
91 virtual void AllowBindings(int binding_flags) = 0; | |
92 | |
93 // Notifies the listener that a directory enumeration is complete. | 89 // Notifies the listener that a directory enumeration is complete. |
94 virtual void DirectoryEnumerationFinished( | 90 virtual void DirectoryEnumerationFinished( |
95 int request_id, | 91 int request_id, |
96 const std::vector<base::FilePath>& files) = 0; | 92 const std::vector<base::FilePath>& files) = 0; |
97 | 93 |
98 // Tells the renderer not to add scrollbars with height and width below a | 94 // Tells the renderer not to add scrollbars with height and width below a |
99 // threshold. | 95 // threshold. |
100 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; | 96 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; |
101 | 97 |
102 // Instructs the RenderView to automatically resize and send back updates | 98 // Instructs the RenderView to automatically resize and send back updates |
(...skipping 13 matching lines...) Expand all Loading... |
116 const gfx::Point& location, | 112 const gfx::Point& location, |
117 const blink::WebMediaPlayerAction& action) = 0; | 113 const blink::WebMediaPlayerAction& action) = 0; |
118 | 114 |
119 // Tells the renderer to perform the given action on the plugin located at | 115 // Tells the renderer to perform the given action on the plugin located at |
120 // the given point. | 116 // the given point. |
121 virtual void ExecutePluginActionAtLocation( | 117 virtual void ExecutePluginActionAtLocation( |
122 const gfx::Point& location, const blink::WebPluginAction& action) = 0; | 118 const gfx::Point& location, const blink::WebPluginAction& action) = 0; |
123 | 119 |
124 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 120 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
125 | 121 |
126 // Returns a bitwise OR of bindings types that have been enabled for this | |
127 // RenderView. See BindingsPolicy for details. | |
128 virtual int GetEnabledBindings() const = 0; | |
129 | |
130 virtual SiteInstance* GetSiteInstance() const = 0; | 122 virtual SiteInstance* GetSiteInstance() const = 0; |
131 | 123 |
132 // Returns true if the RenderView is active and has not crashed. | 124 // Returns true if the RenderView is active and has not crashed. |
133 virtual bool IsRenderViewLive() const = 0; | 125 virtual bool IsRenderViewLive() const = 0; |
134 | 126 |
135 // Notification that a move or resize renderer's containing window has | 127 // Notification that a move or resize renderer's containing window has |
136 // started. | 128 // started. |
137 virtual void NotifyMoveOrResizeStarted() = 0; | 129 virtual void NotifyMoveOrResizeStarted() = 0; |
138 | 130 |
139 // Sets a property with the given name and value on the Web UI binding object. | 131 // Sets a property with the given name and value on the Web UI binding object. |
(...skipping 21 matching lines...) Expand all Loading... |
161 | 153 |
162 private: | 154 private: |
163 // This interface should only be implemented inside content. | 155 // This interface should only be implemented inside content. |
164 friend class RenderViewHostImpl; | 156 friend class RenderViewHostImpl; |
165 RenderViewHost() {} | 157 RenderViewHost() {} |
166 }; | 158 }; |
167 | 159 |
168 } // namespace content | 160 } // namespace content |
169 | 161 |
170 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 162 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |