| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Tell the render view to enable a set of javascript bindings. The argument | 94 // Tell the render view to enable a set of javascript bindings. The argument |
| 95 // should be a combination of values from BindingsPolicy. | 95 // should be a combination of values from BindingsPolicy. |
| 96 virtual void AllowBindings(int binding_flags) = 0; | 96 virtual void AllowBindings(int binding_flags) = 0; |
| 97 | 97 |
| 98 // Tells the renderer to clear the focused element (if any). | 98 // Tells the renderer to clear the focused element (if any). |
| 99 virtual void ClearFocusedElement() = 0; | 99 virtual void ClearFocusedElement() = 0; |
| 100 | 100 |
| 101 // Returns true if the current focused element is editable. | 101 // Returns true if the current focused element is editable. |
| 102 virtual bool IsFocusedElementEditable() = 0; | 102 virtual bool IsFocusedElementEditable() = 0; |
| 103 | 103 |
| 104 // Copies the image at location x, y to the clipboard (if there indeed is an | |
| 105 // image at that location). | |
| 106 virtual void CopyImageAt(int x, int y) = 0; | |
| 107 | |
| 108 // Saves the image at location x, y to the disk (if there indeed is an | |
| 109 // image at that location). | |
| 110 virtual void SaveImageAt(int x, int y) = 0; | |
| 111 | |
| 112 // Notifies the listener that a directory enumeration is complete. | 104 // Notifies the listener that a directory enumeration is complete. |
| 113 virtual void DirectoryEnumerationFinished( | 105 virtual void DirectoryEnumerationFinished( |
| 114 int request_id, | 106 int request_id, |
| 115 const std::vector<base::FilePath>& files) = 0; | 107 const std::vector<base::FilePath>& files) = 0; |
| 116 | 108 |
| 117 // Tells the renderer not to add scrollbars with height and width below a | 109 // Tells the renderer not to add scrollbars with height and width below a |
| 118 // threshold. | 110 // threshold. |
| 119 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; | 111 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; |
| 120 | 112 |
| 121 // Notifies the renderer that a a drag operation that it started has ended, | 113 // Notifies the renderer that a a drag operation that it started has ended, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 204 |
| 213 private: | 205 private: |
| 214 // This interface should only be implemented inside content. | 206 // This interface should only be implemented inside content. |
| 215 friend class RenderViewHostImpl; | 207 friend class RenderViewHostImpl; |
| 216 RenderViewHost() {} | 208 RenderViewHost() {} |
| 217 }; | 209 }; |
| 218 | 210 |
| 219 } // namespace content | 211 } // namespace content |
| 220 | 212 |
| 221 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 213 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |