| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 89 // Tell the render view to enable a set of javascript bindings. The argument |
| 90 // should be a combination of values from BindingsPolicy. | 90 // should be a combination of values from BindingsPolicy. |
| 91 virtual void AllowBindings(int binding_flags) = 0; | 91 virtual void AllowBindings(int binding_flags) = 0; |
| 92 | 92 |
| 93 // Tells the renderer to clear the focused element (if any). | |
| 94 virtual void ClearFocusedElement() = 0; | |
| 95 | |
| 96 // Returns true if the current focused element is editable. | |
| 97 virtual bool IsFocusedElementEditable() = 0; | |
| 98 | |
| 99 // Notifies the listener that a directory enumeration is complete. | 93 // Notifies the listener that a directory enumeration is complete. |
| 100 virtual void DirectoryEnumerationFinished( | 94 virtual void DirectoryEnumerationFinished( |
| 101 int request_id, | 95 int request_id, |
| 102 const std::vector<base::FilePath>& files) = 0; | 96 const std::vector<base::FilePath>& files) = 0; |
| 103 | 97 |
| 104 // Tells the renderer not to add scrollbars with height and width below a | 98 // Tells the renderer not to add scrollbars with height and width below a |
| 105 // threshold. | 99 // threshold. |
| 106 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; | 100 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; |
| 107 | 101 |
| 108 // Instructs the RenderView to automatically resize and send back updates | 102 // Instructs the RenderView to automatically resize and send back updates |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 161 |
| 168 private: | 162 private: |
| 169 // This interface should only be implemented inside content. | 163 // This interface should only be implemented inside content. |
| 170 friend class RenderViewHostImpl; | 164 friend class RenderViewHostImpl; |
| 171 RenderViewHost() {} | 165 RenderViewHost() {} |
| 172 }; | 166 }; |
| 173 | 167 |
| 174 } // namespace content | 168 } // namespace content |
| 175 | 169 |
| 176 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 170 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |