OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 const base::string16& default_value, | 848 const base::string16& default_value, |
849 const GURL& frame_url, | 849 const GURL& frame_url, |
850 base::string16* result); | 850 base::string16* result); |
851 | 851 |
852 // Sends a message and runs a nested message loop. | 852 // Sends a message and runs a nested message loop. |
853 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 853 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
854 | 854 |
855 // Called when the "pinned to left/right edge" state needs to be updated. | 855 // Called when the "pinned to left/right edge" state needs to be updated. |
856 void UpdateScrollState(blink::WebFrame* frame); | 856 void UpdateScrollState(blink::WebFrame* frame); |
857 | 857 |
858 void EvaluateScript(const base::string16& frame_xpath, | |
859 const base::string16& jscript, | |
860 int id, | |
861 bool notify_result); | |
862 | |
863 // IPC message handlers ------------------------------------------------------ | 858 // IPC message handlers ------------------------------------------------------ |
864 // | 859 // |
865 // The documentation for these functions should be in | 860 // The documentation for these functions should be in |
866 // content/common/*_messages.h for the message that the function is handling. | 861 // content/common/*_messages.h for the message that the function is handling. |
867 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 862 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
868 void OnMoveCaret(const gfx::Point& point); | 863 void OnMoveCaret(const gfx::Point& point); |
869 void OnReplace(const base::string16& text); | 864 void OnReplace(const base::string16& text); |
870 void OnReplaceMisspelling(const base::string16& text); | 865 void OnReplaceMisspelling(const base::string16& text); |
871 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 866 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
872 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 867 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 void OnMediaPlayerActionAt(const gfx::Point& location, | 912 void OnMediaPlayerActionAt(const gfx::Point& location, |
918 const blink::WebMediaPlayerAction& action); | 913 const blink::WebMediaPlayerAction& action); |
919 void OnOrientationChangeEvent(int orientation); | 914 void OnOrientationChangeEvent(int orientation); |
920 void OnPluginActionAt(const gfx::Point& location, | 915 void OnPluginActionAt(const gfx::Point& location, |
921 const blink::WebPluginAction& action); | 916 const blink::WebPluginAction& action); |
922 void OnMoveOrResizeStarted(); | 917 void OnMoveOrResizeStarted(); |
923 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 918 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
924 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); | 919 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); |
925 void OnReloadFrame(); | 920 void OnReloadFrame(); |
926 void OnResetPageEncodingToDefault(); | 921 void OnResetPageEncodingToDefault(); |
927 void OnScriptEvalRequest(const base::string16& frame_xpath, | |
928 const base::string16& jscript, | |
929 int id, | |
930 bool notify_result); | |
931 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 922 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
932 void OnSetActive(bool active); | 923 void OnSetActive(bool active); |
933 void OnSetBackground(const SkBitmap& background); | 924 void OnSetBackground(const SkBitmap& background); |
934 void OnExitFullscreen(); | 925 void OnExitFullscreen(); |
935 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 926 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
936 void OnSetInitialFocus(bool reverse); | 927 void OnSetInitialFocus(bool reverse); |
937 void OnSetPageEncoding(const std::string& encoding_name); | 928 void OnSetPageEncoding(const std::string& encoding_name); |
938 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 929 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
939 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 930 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
940 void OnSetZoomLevel(double zoom_level); | 931 void OnSetZoomLevel(double zoom_level); |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 // use the Observer interface to filter IPC messages and receive frame change | 1422 // use the Observer interface to filter IPC messages and receive frame change |
1432 // notifications. | 1423 // notifications. |
1433 // --------------------------------------------------------------------------- | 1424 // --------------------------------------------------------------------------- |
1434 | 1425 |
1435 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1426 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1436 }; | 1427 }; |
1437 | 1428 |
1438 } // namespace content | 1429 } // namespace content |
1439 | 1430 |
1440 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1431 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |