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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 uint32 GetCPBrowsingContext(); | 398 uint32 GetCPBrowsingContext(); |
399 | 399 |
400 // Dispatches the current navigation state to the browser. Called on a | 400 // Dispatches the current navigation state to the browser. Called on a |
401 // periodic timer so we don't send too many messages. | 401 // periodic timer so we don't send too many messages. |
402 void SyncNavigationState(); | 402 void SyncNavigationState(); |
403 | 403 |
404 // Evaluates a string of JavaScript in a particular frame. | 404 // Evaluates a string of JavaScript in a particular frame. |
405 void EvaluateScript(const std::wstring& frame_xpath, | 405 void EvaluateScript(const std::wstring& frame_xpath, |
406 const std::wstring& jscript); | 406 const std::wstring& jscript); |
407 | 407 |
408 // Inserts a string of CSS in a particular frame. | 408 // Inserts a string of CSS in a particular frame. |id| can be specified to |
| 409 // give the CSS style element an id, and (if specified) will replace the |
| 410 // element with the same id. |
409 void InsertCSS(const std::wstring& frame_xpath, | 411 void InsertCSS(const std::wstring& frame_xpath, |
410 const std::string& css); | 412 const std::string& css, |
| 413 const std::string& id); |
411 | 414 |
412 int delay_seconds_for_form_state_sync() const { | 415 int delay_seconds_for_form_state_sync() const { |
413 return delay_seconds_for_form_state_sync_; | 416 return delay_seconds_for_form_state_sync_; |
414 } | 417 } |
415 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { | 418 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { |
416 delay_seconds_for_form_state_sync_ = delay_in_seconds; | 419 delay_seconds_for_form_state_sync_ = delay_in_seconds; |
417 } | 420 } |
418 | 421 |
419 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } | 422 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } |
420 | 423 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 void OnUpdateWebPreferences(const WebPreferences& prefs); | 586 void OnUpdateWebPreferences(const WebPreferences& prefs); |
584 void OnSetAltErrorPageURL(const GURL& gurl); | 587 void OnSetAltErrorPageURL(const GURL& gurl); |
585 | 588 |
586 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); | 589 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); |
587 | 590 |
588 void OnGetApplicationInfo(int page_id); | 591 void OnGetApplicationInfo(int page_id); |
589 | 592 |
590 void OnScriptEvalRequest(const std::wstring& frame_xpath, | 593 void OnScriptEvalRequest(const std::wstring& frame_xpath, |
591 const std::wstring& jscript); | 594 const std::wstring& jscript); |
592 void OnCSSInsertRequest(const std::wstring& frame_xpath, | 595 void OnCSSInsertRequest(const std::wstring& frame_xpath, |
593 const std::string& css); | 596 const std::string& css, |
| 597 const std::string& id); |
594 void OnAddMessageToConsole(const string16& frame_xpath, | 598 void OnAddMessageToConsole(const string16& frame_xpath, |
595 const string16& message, | 599 const string16& message, |
596 const WebKit::WebConsoleMessage::Level&); | 600 const WebKit::WebConsoleMessage::Level&); |
597 void OnReservePageIDRange(int size_of_range); | 601 void OnReservePageIDRange(int size_of_range); |
598 | 602 |
599 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 603 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
600 const gfx::Point& screen_point, | 604 const gfx::Point& screen_point, |
601 bool ended, | 605 bool ended, |
602 WebKit::WebDragOperation drag_operation); | 606 WebKit::WebDragOperation drag_operation); |
603 void OnDragSourceSystemDragEnded(); | 607 void OnDragSourceSystemDragEnded(); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 WebPreferences webkit_preferences_; | 931 WebPreferences webkit_preferences_; |
928 | 932 |
929 // Stores edit commands associated to the next key event. | 933 // Stores edit commands associated to the next key event. |
930 // Shall be cleared as soon as the next key event is processed. | 934 // Shall be cleared as soon as the next key event is processed. |
931 EditCommands edit_commands_; | 935 EditCommands edit_commands_; |
932 | 936 |
933 DISALLOW_COPY_AND_ASSIGN(RenderView); | 937 DISALLOW_COPY_AND_ASSIGN(RenderView); |
934 }; | 938 }; |
935 | 939 |
936 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 940 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |