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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 WebKit::WebDragOperationsMask operations_allowed, | 929 WebKit::WebDragOperationsMask operations_allowed, |
930 int key_modifiers); | 930 int key_modifiers); |
931 void OnEnablePreferredSizeChangedMode(); | 931 void OnEnablePreferredSizeChangedMode(); |
932 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); | 932 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
933 void OnDisableAutoResize(const gfx::Size& new_size); | 933 void OnDisableAutoResize(const gfx::Size& new_size); |
934 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); | 934 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); |
935 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 935 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
936 void OnFileChooserResponse( | 936 void OnFileChooserResponse( |
937 const std::vector<ui::SelectedFileInfo>& files); | 937 const std::vector<ui::SelectedFileInfo>& files); |
938 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 938 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
939 void OnFindReplyAck(); | |
940 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 939 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
941 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 940 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
942 const std::vector<GURL>& links, | 941 const std::vector<GURL>& links, |
943 const std::vector<FilePath>& local_paths, | 942 const std::vector<FilePath>& local_paths, |
944 const FilePath& local_directory_name); | 943 const FilePath& local_directory_name); |
945 void OnMediaPlayerActionAt(const gfx::Point& location, | 944 void OnMediaPlayerActionAt(const gfx::Point& location, |
946 const WebKit::WebMediaPlayerAction& action); | 945 const WebKit::WebMediaPlayerAction& action); |
947 | 946 |
948 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. | 947 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. |
949 void OnOrientationChangeEvent(int orientation); | 948 void OnOrientationChangeEvent(int orientation); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 // The total number of unrequested popups that exist and can be followed back | 1355 // The total number of unrequested popups that exist and can be followed back |
1357 // to a common opener. This count is shared among all RenderViews created with | 1356 // to a common opener. This count is shared among all RenderViews created with |
1358 // createView(). All popups are treated as unrequested until specifically | 1357 // createView(). All popups are treated as unrequested until specifically |
1359 // instructed otherwise by the Browser process. | 1358 // instructed otherwise by the Browser process. |
1360 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; | 1359 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; |
1361 | 1360 |
1362 // Whether this is a top level window (instead of a popup). Top level windows | 1361 // Whether this is a top level window (instead of a popup). Top level windows |
1363 // shouldn't count against their own |shared_popup_counter_|. | 1362 // shouldn't count against their own |shared_popup_counter_|. |
1364 bool decrement_shared_popup_at_destruction_; | 1363 bool decrement_shared_popup_at_destruction_; |
1365 | 1364 |
1366 // If the browser hasn't sent us an ACK for the last FindReply we sent | |
1367 // to it, then we need to queue up the message (keeping only the most | |
1368 // recent message if new ones come in). | |
1369 scoped_ptr<IPC::Message> queued_find_reply_message_; | |
1370 | |
1371 // Stores edit commands associated to the next key event. | 1365 // Stores edit commands associated to the next key event. |
1372 // Shall be cleared as soon as the next key event is processed. | 1366 // Shall be cleared as soon as the next key event is processed. |
1373 EditCommands edit_commands_; | 1367 EditCommands edit_commands_; |
1374 | 1368 |
1375 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS | 1369 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS |
1376 // object is only exposed when Web UI bindings are enabled. | 1370 // object is only exposed when Web UI bindings are enabled. |
1377 scoped_ptr<WebUIBindings> web_ui_bindings_; | 1371 scoped_ptr<WebUIBindings> web_ui_bindings_; |
1378 | 1372 |
1379 // The external popup for the currently showing select popup. | 1373 // The external popup for the currently showing select popup. |
1380 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1374 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 // bunch of stuff, you should probably create a helper class and put your | 1439 // bunch of stuff, you should probably create a helper class and put your |
1446 // data and methods on that to avoid bloating RenderView more. You can | 1440 // data and methods on that to avoid bloating RenderView more. You can |
1447 // use the Observer interface to filter IPC messages and receive frame change | 1441 // use the Observer interface to filter IPC messages and receive frame change |
1448 // notifications. | 1442 // notifications. |
1449 // --------------------------------------------------------------------------- | 1443 // --------------------------------------------------------------------------- |
1450 | 1444 |
1451 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1445 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1452 }; | 1446 }; |
1453 | 1447 |
1454 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1448 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |