| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } | 414 AudioMessageFilter* audio_message_filter() { return audio_message_filter_; } |
| 415 | 415 |
| 416 void OnClearFocusedNode(); | 416 void OnClearFocusedNode(); |
| 417 | 417 |
| 418 void SendExtensionRequest(const std::string& name, const std::string& args, | 418 void SendExtensionRequest(const std::string& name, const std::string& args, |
| 419 int request_id, bool has_callback); | 419 int request_id, bool has_callback); |
| 420 void OnExtensionResponse(int request_id, bool success, | 420 void OnExtensionResponse(int request_id, bool success, |
| 421 const std::string& response, | 421 const std::string& response, |
| 422 const std::string& error); | 422 const std::string& error); |
| 423 | 423 |
| 424 void OnSetExtensionViewMode(const std::string& mode); |
| 425 |
| 424 const WebPreferences& webkit_preferences() const { | 426 const WebPreferences& webkit_preferences() const { |
| 425 return webkit_preferences_; | 427 return webkit_preferences_; |
| 426 } | 428 } |
| 427 | 429 |
| 428 protected: | 430 protected: |
| 429 // RenderWidget override. | 431 // RenderWidget override. |
| 430 virtual void OnResize(const gfx::Size& new_size, | 432 virtual void OnResize(const gfx::Size& new_size, |
| 431 const gfx::Rect& resizer_rect); | 433 const gfx::Rect& resizer_rect); |
| 432 // RenderWidget override | 434 // RenderWidget override |
| 433 virtual void DidPaint(); | 435 virtual void DidPaint(); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 void SendPasswordForms(WebKit::WebFrame* frame); | 711 void SendPasswordForms(WebKit::WebFrame* frame); |
| 710 | 712 |
| 711 void Print(WebKit::WebFrame* frame, bool script_initiated); | 713 void Print(WebKit::WebFrame* frame, bool script_initiated); |
| 712 | 714 |
| 713 #if defined(OS_LINUX) | 715 #if defined(OS_LINUX) |
| 714 void UpdateFontRenderingFromRendererPrefs(); | 716 void UpdateFontRenderingFromRendererPrefs(); |
| 715 #else | 717 #else |
| 716 void UpdateFontRenderingFromRendererPrefs() { } | 718 void UpdateFontRenderingFromRendererPrefs() { } |
| 717 #endif | 719 #endif |
| 718 | 720 |
| 721 // Inject toolstrip CSS for extension moles and toolstrips. |
| 722 void InjectToolstripCSS(); |
| 723 |
| 719 // Initializes the document_tag_ member if necessary. | 724 // Initializes the document_tag_ member if necessary. |
| 720 void EnsureDocumentTag(); | 725 void EnsureDocumentTag(); |
| 721 | 726 |
| 722 // Bitwise-ORed set of extra bindings that have been enabled. See | 727 // Bitwise-ORed set of extra bindings that have been enabled. See |
| 723 // BindingsPolicy for details. | 728 // BindingsPolicy for details. |
| 724 int enabled_bindings_; | 729 int enabled_bindings_; |
| 725 | 730 |
| 726 // DOM Automation Controller CppBoundClass. | 731 // DOM Automation Controller CppBoundClass. |
| 727 DomAutomationController dom_automation_controller_; | 732 DomAutomationController dom_automation_controller_; |
| 728 | 733 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 WebPreferences webkit_preferences_; | 955 WebPreferences webkit_preferences_; |
| 951 | 956 |
| 952 // Stores edit commands associated to the next key event. | 957 // Stores edit commands associated to the next key event. |
| 953 // Shall be cleared as soon as the next key event is processed. | 958 // Shall be cleared as soon as the next key event is processed. |
| 954 EditCommands edit_commands_; | 959 EditCommands edit_commands_; |
| 955 | 960 |
| 956 DISALLOW_COPY_AND_ASSIGN(RenderView); | 961 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 957 }; | 962 }; |
| 958 | 963 |
| 959 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 964 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |