OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 void OnRedo(); | 812 void OnRedo(); |
813 void OnReloadFrame(); | 813 void OnReloadFrame(); |
814 void OnReplace(const string16& text); | 814 void OnReplace(const string16& text); |
815 void OnReservePageIDRange(int size_of_range); | 815 void OnReservePageIDRange(int size_of_range); |
816 void OnResetPageEncodingToDefault(); | 816 void OnResetPageEncodingToDefault(); |
817 void OnScriptEvalRequest(const string16& frame_xpath, | 817 void OnScriptEvalRequest(const string16& frame_xpath, |
818 const string16& jscript, | 818 const string16& jscript, |
819 int id, | 819 int id, |
820 bool notify_result); | 820 bool notify_result); |
821 void OnSelectAll(); | 821 void OnSelectAll(); |
822 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | |
823 void OnSetAccessibilityFocus(int acc_obj_id); | 822 void OnSetAccessibilityFocus(int acc_obj_id); |
824 void OnSetActive(bool active); | 823 void OnSetActive(bool active); |
825 void OnSetAltErrorPageURL(const GURL& gurl); | 824 void OnSetAltErrorPageURL(const GURL& gurl); |
826 void OnSetBackground(const SkBitmap& background); | 825 void OnSetBackground(const SkBitmap& background); |
827 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 826 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
828 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 827 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
829 void OnSetInitialFocus(bool reverse); | 828 void OnSetInitialFocus(bool reverse); |
830 #if defined(OS_MACOSX) | 829 #if defined(OS_MACOSX) |
831 void OnSetInLiveResize(bool in_live_resize); | 830 void OnSetInLiveResize(bool in_live_resize); |
832 #endif | 831 #endif |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 // The node that the context menu was pressed over. | 1190 // The node that the context menu was pressed over. |
1192 WebKit::WebNode context_menu_node_; | 1191 WebKit::WebNode context_menu_node_; |
1193 | 1192 |
1194 // Reports load progress to the browser. | 1193 // Reports load progress to the browser. |
1195 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | 1194 scoped_ptr<LoadProgressTracker> load_progress_tracker_; |
1196 | 1195 |
1197 // All the registered observers. We expect this list to be small, so vector | 1196 // All the registered observers. We expect this list to be small, so vector |
1198 // is fine. | 1197 // is fine. |
1199 ObserverList<RenderViewObserver> observers_; | 1198 ObserverList<RenderViewObserver> observers_; |
1200 | 1199 |
1201 // Used to inform didChangeSelection() when it is called in the context | |
1202 // of handling a ViewMsg_SelectRange IPC. | |
1203 bool handling_select_range_; | |
1204 | |
1205 // --------------------------------------------------------------------------- | 1200 // --------------------------------------------------------------------------- |
1206 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1201 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1207 // sections rather than throwing it randomly at the end. If you're adding a | 1202 // sections rather than throwing it randomly at the end. If you're adding a |
1208 // bunch of stuff, you should probably create a helper class and put your | 1203 // bunch of stuff, you should probably create a helper class and put your |
1209 // data and methods on that to avoid bloating RenderView more. You can use | 1204 // data and methods on that to avoid bloating RenderView more. You can use |
1210 // the Observer interface to filter IPC messages and receive frame change | 1205 // the Observer interface to filter IPC messages and receive frame change |
1211 // notifications. | 1206 // notifications. |
1212 // --------------------------------------------------------------------------- | 1207 // --------------------------------------------------------------------------- |
1213 | 1208 |
1214 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1209 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1215 }; | 1210 }; |
1216 | 1211 |
1217 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1212 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |