Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 898 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
899 899
900 // Called when the "pinned to left/right edge" state needs to be updated. 900 // Called when the "pinned to left/right edge" state needs to be updated.
901 void UpdateScrollState(WebKit::WebFrame* frame); 901 void UpdateScrollState(WebKit::WebFrame* frame);
902 902
903 // IPC message handlers ------------------------------------------------------ 903 // IPC message handlers ------------------------------------------------------
904 // 904 //
905 // The documentation for these functions should be in 905 // The documentation for these functions should be in
906 // render_messages_internal.h for the message that the function is handling. 906 // render_messages_internal.h for the message that the function is handling.
907 907
908 #if defined(OS_ANDROID)
909 void OnActivateNearestFindResult(int request_id, float x, float y);
910 #endif
908 CONTENT_EXPORT void OnAllowBindings(int enabled_bindings_flags); 911 CONTENT_EXPORT void OnAllowBindings(int enabled_bindings_flags);
909 void OnAllowScriptToClose(bool script_can_close); 912 void OnAllowScriptToClose(bool script_can_close);
910 void OnAsyncFileOpened(base::PlatformFileError error_code, 913 void OnAsyncFileOpened(base::PlatformFileError error_code,
911 IPC::PlatformFileForTransit file_for_transit, 914 IPC::PlatformFileForTransit file_for_transit,
912 int message_id); 915 int message_id);
913 void OnPpapiBrokerChannelCreated(int request_id, 916 void OnPpapiBrokerChannelCreated(int request_id,
914 const IPC::ChannelHandle& handle); 917 const IPC::ChannelHandle& handle);
915 void OnPpapiBrokerPermissionResult(int request_id, bool result); 918 void OnPpapiBrokerPermissionResult(int request_id, bool result);
916 void OnCancelDownload(int32 download_id); 919 void OnCancelDownload(int32 download_id);
917 void OnClearFocusedNode(); 920 void OnClearFocusedNode();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 int key_modifiers); 957 int key_modifiers);
955 void OnEnablePreferredSizeChangedMode(); 958 void OnEnablePreferredSizeChangedMode();
956 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); 959 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size);
957 void OnDisableAutoResize(const gfx::Size& new_size); 960 void OnDisableAutoResize(const gfx::Size& new_size);
958 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); 961 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths);
959 void OnExecuteEditCommand(const std::string& name, const std::string& value); 962 void OnExecuteEditCommand(const std::string& name, const std::string& value);
960 void OnFileChooserResponse( 963 void OnFileChooserResponse(
961 const std::vector<ui::SelectedFileInfo>& files); 964 const std::vector<ui::SelectedFileInfo>& files);
962 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); 965 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
963 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); 966 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
967 #if defined(OS_ANDROID)
968 void OnGetFindMatchRects(int current_version);
969 #endif
964 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( 970 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
965 const std::vector<GURL>& links, 971 const std::vector<GURL>& links,
966 const std::vector<FilePath>& local_paths, 972 const std::vector<FilePath>& local_paths,
967 const FilePath& local_directory_name); 973 const FilePath& local_directory_name);
968 void OnMediaPlayerActionAt(const gfx::Point& location, 974 void OnMediaPlayerActionAt(const gfx::Point& location,
969 const WebKit::WebMediaPlayerAction& action); 975 const WebKit::WebMediaPlayerAction& action);
970 976
971 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. 977 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on.
972 void OnOrientationChangeEvent(int orientation); 978 void OnOrientationChangeEvent(int orientation);
973 979
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 // bunch of stuff, you should probably create a helper class and put your 1543 // bunch of stuff, you should probably create a helper class and put your
1538 // data and methods on that to avoid bloating RenderView more. You can 1544 // data and methods on that to avoid bloating RenderView more. You can
1539 // use the Observer interface to filter IPC messages and receive frame change 1545 // use the Observer interface to filter IPC messages and receive frame change
1540 // notifications. 1546 // notifications.
1541 // --------------------------------------------------------------------------- 1547 // ---------------------------------------------------------------------------
1542 1548
1543 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1549 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1544 }; 1550 };
1545 1551
1546 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1552 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698