| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 uint32 GetCPBrowsingContext(); | 331 uint32 GetCPBrowsingContext(); |
| 332 | 332 |
| 333 // Dispatches the current navigation state to the browser. Called on a | 333 // Dispatches the current navigation state to the browser. Called on a |
| 334 // periodic timer so we don't send too many messages. | 334 // periodic timer so we don't send too many messages. |
| 335 void SyncNavigationState(); | 335 void SyncNavigationState(); |
| 336 | 336 |
| 337 // Evaluates a string of JavaScript in a particular frame. | 337 // Evaluates a string of JavaScript in a particular frame. |
| 338 void EvaluateScript(const std::wstring& frame_xpath, | 338 void EvaluateScript(const std::wstring& frame_xpath, |
| 339 const std::wstring& jscript); | 339 const std::wstring& jscript); |
| 340 | 340 |
| 341 // Inserts a string of CSS in a particular frame. |
| 342 void InsertCSS(const std::wstring& frame_xpath, |
| 343 const std::string& css); |
| 344 |
| 341 // Called when the Javascript debugger is no longer attached. | 345 // Called when the Javascript debugger is no longer attached. |
| 342 // This is called from within the renderer, not via an IPC message. | 346 // This is called from within the renderer, not via an IPC message. |
| 343 void OnDebugDetach(); | 347 void OnDebugDetach(); |
| 344 | 348 |
| 345 int delay_seconds_for_form_state_sync() const { | 349 int delay_seconds_for_form_state_sync() const { |
| 346 return delay_seconds_for_form_state_sync_; | 350 return delay_seconds_for_form_state_sync_; |
| 347 } | 351 } |
| 348 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { | 352 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { |
| 349 delay_seconds_for_form_state_sync_ = delay_in_seconds; | 353 delay_seconds_for_form_state_sync_ = delay_in_seconds; |
| 350 } | 354 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 void OnSetInitialFocus(bool reverse); | 503 void OnSetInitialFocus(bool reverse); |
| 500 void OnUpdateWebPreferences(const WebPreferences& prefs); | 504 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 501 void OnSetAltErrorPageURL(const GURL& gurl); | 505 void OnSetAltErrorPageURL(const GURL& gurl); |
| 502 | 506 |
| 503 void OnDownloadImage(int id, const GURL& image_url, int image_size); | 507 void OnDownloadImage(int id, const GURL& image_url, int image_size); |
| 504 | 508 |
| 505 void OnGetApplicationInfo(int page_id); | 509 void OnGetApplicationInfo(int page_id); |
| 506 | 510 |
| 507 void OnScriptEvalRequest(const std::wstring& frame_xpath, | 511 void OnScriptEvalRequest(const std::wstring& frame_xpath, |
| 508 const std::wstring& jscript); | 512 const std::wstring& jscript); |
| 513 void OnCSSInsertRequest(const std::wstring& frame_xpath, |
| 514 const std::string& css); |
| 509 void OnAddMessageToConsole(const std::wstring& frame_xpath, | 515 void OnAddMessageToConsole(const std::wstring& frame_xpath, |
| 510 const std::wstring& msg, | 516 const std::wstring& msg, |
| 511 ConsoleMessageLevel level); | 517 ConsoleMessageLevel level); |
| 512 void OnDebugAttach(); | 518 void OnDebugAttach(); |
| 513 | 519 |
| 514 void OnReservePageIDRange(int size_of_range); | 520 void OnReservePageIDRange(int size_of_range); |
| 515 | 521 |
| 516 void OnDragSourceEndedOrMoved( | 522 void OnDragSourceEndedOrMoved( |
| 517 int client_x, int client_y, int screen_x, int screen_y, bool ended); | 523 int client_x, int client_y, int screen_x, int screen_y, bool ended); |
| 518 void OnDragSourceSystemDragEnded(); | 524 void OnDragSourceSystemDragEnded(); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 // change but is overridden by tests. | 802 // change but is overridden by tests. |
| 797 int delay_seconds_for_form_state_sync_; | 803 int delay_seconds_for_form_state_sync_; |
| 798 | 804 |
| 799 // A set of audio renderers registered to use IPC for audio output. | 805 // A set of audio renderers registered to use IPC for audio output. |
| 800 IDMap<AudioRendererImpl> audio_renderers_; | 806 IDMap<AudioRendererImpl> audio_renderers_; |
| 801 | 807 |
| 802 DISALLOW_COPY_AND_ASSIGN(RenderView); | 808 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 803 }; | 809 }; |
| 804 | 810 |
| 805 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 811 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |