Chromium Code Reviews| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 427 | 427 |
| 428 void OnSetExtensionViewMode(const std::string& mode); | 428 void OnSetExtensionViewMode(const std::string& mode); |
| 429 | 429 |
| 430 const WebPreferences& webkit_preferences() const { | 430 const WebPreferences& webkit_preferences() const { |
| 431 return webkit_preferences_; | 431 return webkit_preferences_; |
| 432 } | 432 } |
| 433 | 433 |
| 434 // Sends a message and runs a nested message loop. | 434 // Sends a message and runs a nested message loop. |
| 435 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 435 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 436 | 436 |
| 437 // Called when the "idle" user script state has been reached. See | |
| 438 // UserScript::DOCUMENT_IDLE. | |
| 439 void OnUserScriptIdleLocation(WebKit::WebFrame* frame); | |
|
Matt Perry
2009/11/02 19:46:30
"Location" is a confusing descriptor here. How abo
Aaron Boodman
2009/11/03 05:03:11
Done.
| |
| 440 | |
| 437 protected: | 441 protected: |
| 438 // RenderWidget overrides: | 442 // RenderWidget overrides: |
| 439 virtual void Close(); | 443 virtual void Close(); |
| 440 virtual void OnResize(const gfx::Size& new_size, | 444 virtual void OnResize(const gfx::Size& new_size, |
| 441 const gfx::Rect& resizer_rect); | 445 const gfx::Rect& resizer_rect); |
| 442 virtual void DidPaint(); | 446 virtual void DidPaint(); |
| 443 virtual void DidHandleKeyEvent(); | 447 virtual void DidHandleKeyEvent(); |
| 444 | 448 |
| 445 private: | 449 private: |
| 446 // For unit tests. | 450 // For unit tests. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 612 void OnEnablePreferredSizeChangedMode(); | 616 void OnEnablePreferredSizeChangedMode(); |
| 613 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 617 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 614 void OnMediaPlayerActionAt(const gfx::Point& location, | 618 void OnMediaPlayerActionAt(const gfx::Point& location, |
| 615 const WebKit::WebMediaPlayerAction& action); | 619 const WebKit::WebMediaPlayerAction& action); |
| 616 void OnNotifyRendererViewType(ViewType::Type view_type); | 620 void OnNotifyRendererViewType(ViewType::Type view_type); |
| 617 void OnUpdateBrowserWindowId(int window_id); | 621 void OnUpdateBrowserWindowId(int window_id); |
| 618 void OnExecuteCode(int request_id, | 622 void OnExecuteCode(int request_id, |
| 619 const std::string& extension_id, | 623 const std::string& extension_id, |
| 620 bool is_js_code, | 624 bool is_js_code, |
| 621 const std::string& code_string); | 625 const std::string& code_string); |
| 626 void ExecuteCodeImpl(WebKit::WebFrame* frame, | |
| 627 int request_id, | |
| 628 const std::string& extension_id, | |
| 629 bool is_js_code, | |
| 630 const std::string& code_string); | |
| 622 void OnUpdateBackForwardListCount(int back_list_count, | 631 void OnUpdateBackForwardListCount(int back_list_count, |
| 623 int forward_list_count); | 632 int forward_list_count); |
| 624 void OnGetAccessibilityInfo( | 633 void OnGetAccessibilityInfo( |
| 625 const webkit_glue::WebAccessibility::InParams& in_params, | 634 const webkit_glue::WebAccessibility::InParams& in_params, |
| 626 webkit_glue::WebAccessibility::OutParams* out_params); | 635 webkit_glue::WebAccessibility::OutParams* out_params); |
| 627 void OnClearAccessibilityInfo(int acc_obj_id, bool clear_all); | 636 void OnClearAccessibilityInfo(int acc_obj_id, bool clear_all); |
| 628 | 637 |
| 629 void OnExtensionMessageInvoke(const std::string& function_name, | 638 void OnExtensionMessageInvoke(const std::string& function_name, |
| 630 const ListValue& args); | 639 const ListValue& args); |
| 631 | 640 |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 988 // ImageResourceFetchers schedule via DownloadImage. | 997 // ImageResourceFetchers schedule via DownloadImage. |
| 989 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; | 998 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; |
| 990 ImageResourceFetcherSet image_fetchers_; | 999 ImageResourceFetcherSet image_fetchers_; |
| 991 | 1000 |
| 992 typedef std::map<WebKit::WebView*, RenderView*> ViewMap; | 1001 typedef std::map<WebKit::WebView*, RenderView*> ViewMap; |
| 993 | 1002 |
| 994 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1003 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 995 }; | 1004 }; |
| 996 | 1005 |
| 997 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1006 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |