| 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // once the user dismisses the dialog. | 139 // once the user dismisses the dialog. |
| 140 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, | 140 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, |
| 141 const WebKit::WebString& message) = 0; | 141 const WebKit::WebString& message) = 0; |
| 142 | 142 |
| 143 // The client should handle the navigation externally. | 143 // The client should handle the navigation externally. |
| 144 virtual void LoadURLExternally( | 144 virtual void LoadURLExternally( |
| 145 WebKit::WebFrame* frame, | 145 WebKit::WebFrame* frame, |
| 146 const WebKit::WebURLRequest& request, | 146 const WebKit::WebURLRequest& request, |
| 147 WebKit::WebNavigationPolicy policy) = 0; | 147 WebKit::WebNavigationPolicy policy) = 0; |
| 148 | 148 |
| 149 // Used by plugins that load data in this RenderView to update the loading |
| 150 // notifications. |
| 151 virtual void DidStartLoading() = 0; |
| 152 virtual void DidStopLoading() = 0; |
| 153 |
| 149 // Notifies the renderer that a paint is to be generated for the size | 154 // Notifies the renderer that a paint is to be generated for the size |
| 150 // passed in. | 155 // passed in. |
| 151 virtual void Repaint(const gfx::Size& size) = 0; | 156 virtual void Repaint(const gfx::Size& size) = 0; |
| 152 | 157 |
| 153 // Inject edit commands to be used for the next keyboard event. | 158 // Inject edit commands to be used for the next keyboard event. |
| 154 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 159 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
| 155 const std::string& value) = 0; | 160 const std::string& value) = 0; |
| 156 virtual void ClearEditCommands() = 0; | 161 virtual void ClearEditCommands() = 0; |
| 157 | 162 |
| 158 // Returns a collection of security info about |frame|. | 163 // Returns a collection of security info about |frame|. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 169 | 174 |
| 170 private: | 175 private: |
| 171 // This interface should only be implemented inside content. | 176 // This interface should only be implemented inside content. |
| 172 friend class RenderViewImpl; | 177 friend class RenderViewImpl; |
| 173 RenderView() {} | 178 RenderView() {} |
| 174 }; | 179 }; |
| 175 | 180 |
| 176 } // namespace content | 181 } // namespace content |
| 177 | 182 |
| 178 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 183 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |