| 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_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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 uint32 GetCPBrowsingContext(); | 396 uint32 GetCPBrowsingContext(); |
| 397 | 397 |
| 398 // Dispatches the current navigation state to the browser. Called on a | 398 // Dispatches the current navigation state to the browser. Called on a |
| 399 // periodic timer so we don't send too many messages. | 399 // periodic timer so we don't send too many messages. |
| 400 void SyncNavigationState(); | 400 void SyncNavigationState(); |
| 401 | 401 |
| 402 // Evaluates a string of JavaScript in a particular frame. | 402 // Evaluates a string of JavaScript in a particular frame. |
| 403 void EvaluateScript(const std::wstring& frame_xpath, | 403 void EvaluateScript(const std::wstring& frame_xpath, |
| 404 const std::wstring& jscript); | 404 const std::wstring& jscript); |
| 405 | 405 |
| 406 // Inserts a string of CSS in a particular frame. | 406 // Inserts a string of CSS in a particular frame. |id| can be specified to |
| 407 // give the CSS style element an id, and (if specified) will replace the |
| 408 // element with the same id. |
| 407 void InsertCSS(const std::wstring& frame_xpath, | 409 void InsertCSS(const std::wstring& frame_xpath, |
| 408 const std::string& css); | 410 const std::string& css, |
| 411 const std::string& id); |
| 409 | 412 |
| 410 int delay_seconds_for_form_state_sync() const { | 413 int delay_seconds_for_form_state_sync() const { |
| 411 return delay_seconds_for_form_state_sync_; | 414 return delay_seconds_for_form_state_sync_; |
| 412 } | 415 } |
| 413 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { | 416 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { |
| 414 delay_seconds_for_form_state_sync_ = delay_in_seconds; | 417 delay_seconds_for_form_state_sync_ = delay_in_seconds; |
| 415 } | 418 } |
| 416 | 419 |
| 417 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } | 420 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } |
| 418 | 421 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 void OnUpdateWebPreferences(const WebPreferences& prefs); | 580 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 578 void OnSetAltErrorPageURL(const GURL& gurl); | 581 void OnSetAltErrorPageURL(const GURL& gurl); |
| 579 | 582 |
| 580 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); | 583 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); |
| 581 | 584 |
| 582 void OnGetApplicationInfo(int page_id); | 585 void OnGetApplicationInfo(int page_id); |
| 583 | 586 |
| 584 void OnScriptEvalRequest(const std::wstring& frame_xpath, | 587 void OnScriptEvalRequest(const std::wstring& frame_xpath, |
| 585 const std::wstring& jscript); | 588 const std::wstring& jscript); |
| 586 void OnCSSInsertRequest(const std::wstring& frame_xpath, | 589 void OnCSSInsertRequest(const std::wstring& frame_xpath, |
| 587 const std::string& css); | 590 const std::string& css, |
| 591 const std::string& id); |
| 588 void OnAddMessageToConsole(const string16& frame_xpath, | 592 void OnAddMessageToConsole(const string16& frame_xpath, |
| 589 const string16& message, | 593 const string16& message, |
| 590 const WebKit::WebConsoleMessage::Level&); | 594 const WebKit::WebConsoleMessage::Level&); |
| 591 void OnReservePageIDRange(int size_of_range); | 595 void OnReservePageIDRange(int size_of_range); |
| 592 | 596 |
| 593 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 597 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
| 594 const gfx::Point& screen_point, | 598 const gfx::Point& screen_point, |
| 595 bool ended, | 599 bool ended, |
| 596 WebKit::WebDragOperation drag_operation); | 600 WebKit::WebDragOperation drag_operation); |
| 597 void OnDragSourceSystemDragEnded(); | 601 void OnDragSourceSystemDragEnded(); |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 WebPreferences webkit_preferences_; | 920 WebPreferences webkit_preferences_; |
| 917 | 921 |
| 918 // Stores edit commands associated to the next key event. | 922 // Stores edit commands associated to the next key event. |
| 919 // Shall be cleared as soon as the next key event is processed. | 923 // Shall be cleared as soon as the next key event is processed. |
| 920 EditCommands edit_commands_; | 924 EditCommands edit_commands_; |
| 921 | 925 |
| 922 DISALLOW_COPY_AND_ASSIGN(RenderView); | 926 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 923 }; | 927 }; |
| 924 | 928 |
| 925 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 929 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |