| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 void DragTargetDrop(const gfx::Point& client_pt, | 248 void DragTargetDrop(const gfx::Point& client_pt, |
| 249 const gfx::Point& screen_pt); | 249 const gfx::Point& screen_pt); |
| 250 | 250 |
| 251 // Tell the RenderView to reserve a range of page ids of the given size. | 251 // Tell the RenderView to reserve a range of page ids of the given size. |
| 252 void ReservePageIDRange(int size); | 252 void ReservePageIDRange(int size); |
| 253 | 253 |
| 254 // Runs some javascript within the context of a frame in the page. | 254 // Runs some javascript within the context of a frame in the page. |
| 255 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath, | 255 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath, |
| 256 const std::wstring& jscript); | 256 const std::wstring& jscript); |
| 257 | 257 |
| 258 // Insert some css into a frame in the page. | 258 // Insert some css into a frame in the page. |id| is optional, and specifies |
| 259 // the element id given when inserting/replacing the style element. |
| 259 void InsertCSSInWebFrame(const std::wstring& frame_xpath, | 260 void InsertCSSInWebFrame(const std::wstring& frame_xpath, |
| 260 const std::string& css); | 261 const std::string& css, |
| 262 const std::string& id); |
| 261 | 263 |
| 262 // Logs a message to the console of a frame in the page. | 264 // Logs a message to the console of a frame in the page. |
| 263 void AddMessageToConsole(const string16& frame_xpath, | 265 void AddMessageToConsole(const string16& frame_xpath, |
| 264 const string16& message, | 266 const string16& message, |
| 265 const WebKit::WebConsoleMessage::Level&); | 267 const WebKit::WebConsoleMessage::Level&); |
| 266 | 268 |
| 267 // Edit operations. | 269 // Edit operations. |
| 268 void Undo(); | 270 void Undo(); |
| 269 void Redo(); | 271 void Redo(); |
| 270 void Cut(); | 272 void Cut(); |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 // While in this mode, mouse click is converted into InspectElement | 657 // While in this mode, mouse click is converted into InspectElement |
| 656 // command. | 658 // command. |
| 657 bool in_inspect_element_mode_; | 659 bool in_inspect_element_mode_; |
| 658 | 660 |
| 659 NotificationRegistrar registrar_; | 661 NotificationRegistrar registrar_; |
| 660 | 662 |
| 661 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 663 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 662 }; | 664 }; |
| 663 | 665 |
| 664 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 666 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |