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 "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Tell the render view to enable a set of javascript bindings. The argument | 76 // Tell the render view to enable a set of javascript bindings. The argument |
77 // should be a combination of values from BindingsPolicy. | 77 // should be a combination of values from BindingsPolicy. |
78 virtual void AllowBindings(int binding_flags) = 0; | 78 virtual void AllowBindings(int binding_flags) = 0; |
79 | 79 |
80 // Tells the renderer to clear the focused element (if any). | 80 // Tells the renderer to clear the focused element (if any). |
81 virtual void ClearFocusedElement() = 0; | 81 virtual void ClearFocusedElement() = 0; |
82 | 82 |
83 // Returns true if the current focused element is editable. | 83 // Returns true if the current focused element is editable. |
84 virtual bool IsFocusedElementEditable() = 0; | 84 virtual bool IsFocusedElementEditable() = 0; |
85 | 85 |
86 // Causes the renderer to close the current page, including running its | |
87 // onunload event handler. A ClosePage_ACK message will be sent to the | |
88 // ResourceDispatcherHost when it is finished. | |
89 virtual void ClosePage() = 0; | |
90 | |
91 // Copies the image at location x, y to the clipboard (if there indeed is an | 86 // Copies the image at location x, y to the clipboard (if there indeed is an |
92 // image at that location). | 87 // image at that location). |
93 virtual void CopyImageAt(int x, int y) = 0; | 88 virtual void CopyImageAt(int x, int y) = 0; |
94 | 89 |
95 // Saves the image at location x, y to the disk (if there indeed is an | 90 // Saves the image at location x, y to the disk (if there indeed is an |
96 // image at that location). | 91 // image at that location). |
97 virtual void SaveImageAt(int x, int y) = 0; | 92 virtual void SaveImageAt(int x, int y) = 0; |
98 | 93 |
99 // Notifies the listener that a directory enumeration is complete. | 94 // Notifies the listener that a directory enumeration is complete. |
100 virtual void DirectoryEnumerationFinished( | 95 virtual void DirectoryEnumerationFinished( |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 208 |
214 private: | 209 private: |
215 // This interface should only be implemented inside content. | 210 // This interface should only be implemented inside content. |
216 friend class RenderViewHostImpl; | 211 friend class RenderViewHostImpl; |
217 RenderViewHost() {} | 212 RenderViewHost() {} |
218 }; | 213 }; |
219 | 214 |
220 } // namespace content | 215 } // namespace content |
221 | 216 |
222 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 217 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |