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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 virtual WebKit::WebString autoCorrectWord( | 412 virtual WebKit::WebString autoCorrectWord( |
413 const WebKit::WebString& misspelled_word); | 413 const WebKit::WebString& misspelled_word); |
414 virtual void showSpellingUI(bool show); | 414 virtual void showSpellingUI(bool show); |
415 virtual bool isShowingSpellingUI(); | 415 virtual bool isShowingSpellingUI(); |
416 virtual void updateSpellingUIWithMisspelledWord( | 416 virtual void updateSpellingUIWithMisspelledWord( |
417 const WebKit::WebString& word); | 417 const WebKit::WebString& word); |
418 virtual void continuousSpellCheckingEnabledStateChanged(); | 418 virtual void continuousSpellCheckingEnabledStateChanged(); |
419 virtual bool runFileChooser( | 419 virtual bool runFileChooser( |
420 const WebKit::WebFileChooserParams& params, | 420 const WebKit::WebFileChooserParams& params, |
421 WebKit::WebFileChooserCompletion* chooser_completion); | 421 WebKit::WebFileChooserCompletion* chooser_completion); |
| 422 virtual bool enumerateDirectory( |
| 423 const WebKit::WebString& path, |
| 424 WebKit::WebFileChooserCompletion* chooser_completion); |
422 virtual void runModalAlertDialog(WebKit::WebFrame* frame, | 425 virtual void runModalAlertDialog(WebKit::WebFrame* frame, |
423 const WebKit::WebString& message); | 426 const WebKit::WebString& message); |
424 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, | 427 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, |
425 const WebKit::WebString& message); | 428 const WebKit::WebString& message); |
426 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, | 429 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, |
427 const WebKit::WebString& message, | 430 const WebKit::WebString& message, |
428 const WebKit::WebString& default_value, | 431 const WebKit::WebString& default_value, |
429 WebKit::WebString* actual_value); | 432 WebKit::WebString* actual_value); |
430 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame, | 433 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame, |
431 const WebKit::WebString& message); | 434 const WebKit::WebString& message); |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 void OnDragTargetDragEnter(const WebDropData& drop_data, | 833 void OnDragTargetDragEnter(const WebDropData& drop_data, |
831 const gfx::Point& client_pt, | 834 const gfx::Point& client_pt, |
832 const gfx::Point& screen_pt, | 835 const gfx::Point& screen_pt, |
833 WebKit::WebDragOperationsMask operations_allowed); | 836 WebKit::WebDragOperationsMask operations_allowed); |
834 void OnDragTargetDragLeave(); | 837 void OnDragTargetDragLeave(); |
835 void OnDragTargetDragOver(const gfx::Point& client_pt, | 838 void OnDragTargetDragOver(const gfx::Point& client_pt, |
836 const gfx::Point& screen_pt, | 839 const gfx::Point& screen_pt, |
837 WebKit::WebDragOperationsMask operations_allowed); | 840 WebKit::WebDragOperationsMask operations_allowed); |
838 void OnEnablePreferredSizeChangedMode(int flags); | 841 void OnEnablePreferredSizeChangedMode(int flags); |
839 void OnEnableViewSourceMode(); | 842 void OnEnableViewSourceMode(); |
| 843 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); |
840 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); | 844 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); |
841 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 845 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
842 void OnFileChooserResponse(const std::vector<FilePath>& paths); | 846 void OnFileChooserResponse(const std::vector<FilePath>& paths); |
843 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 847 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
844 void OnFindReplyAck(); | 848 void OnFindReplyAck(); |
845 void OnEnableAccessibility(); | 849 void OnEnableAccessibility(); |
846 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 850 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
847 void OnGetApplicationInfo(int page_id); | 851 void OnGetApplicationInfo(int page_id); |
848 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 852 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
849 const std::vector<GURL>& links, | 853 const std::vector<GURL>& links, |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 | 1335 |
1332 // Misc ---------------------------------------------------------------------- | 1336 // Misc ---------------------------------------------------------------------- |
1333 | 1337 |
1334 // The current and pending file chooser completion objects. If the queue is | 1338 // The current and pending file chooser completion objects. If the queue is |
1335 // nonempty, the first item represents the currently running file chooser | 1339 // nonempty, the first item represents the currently running file chooser |
1336 // callback, and the remaining elements are the other file chooser completion | 1340 // callback, and the remaining elements are the other file chooser completion |
1337 // still waiting to be run (in order). | 1341 // still waiting to be run (in order). |
1338 struct PendingFileChooser; | 1342 struct PendingFileChooser; |
1339 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1343 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1340 | 1344 |
| 1345 // The current directory enumeration callback |
| 1346 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; |
| 1347 int enumeration_completion_id_; |
| 1348 |
1341 std::queue<linked_ptr<ExtensionMsg_ExecuteCode_Params> > | 1349 std::queue<linked_ptr<ExtensionMsg_ExecuteCode_Params> > |
1342 pending_code_execution_queue_; | 1350 pending_code_execution_queue_; |
1343 | 1351 |
1344 // ImageResourceFetchers schedule via DownloadImage. | 1352 // ImageResourceFetchers schedule via DownloadImage. |
1345 ImageResourceFetcherList image_fetchers_; | 1353 ImageResourceFetcherList image_fetchers_; |
1346 | 1354 |
1347 // The app info that we are processing. This is used when installing an app | 1355 // The app info that we are processing. This is used when installing an app |
1348 // via application definition. The in-progress web app is stored here while | 1356 // via application definition. The in-progress web app is stored here while |
1349 // its manifest and icons are downloaded. | 1357 // its manifest and icons are downloaded. |
1350 scoped_ptr<WebApplicationInfo> pending_app_info_; | 1358 scoped_ptr<WebApplicationInfo> pending_app_info_; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 // bunch of stuff, you should probably create a helper class and put your | 1421 // bunch of stuff, you should probably create a helper class and put your |
1414 // data and methods on that to avoid bloating RenderView more. You can use | 1422 // data and methods on that to avoid bloating RenderView more. You can use |
1415 // the Observer interface to filter IPC messages and receive frame change | 1423 // the Observer interface to filter IPC messages and receive frame change |
1416 // notifications. | 1424 // notifications. |
1417 // --------------------------------------------------------------------------- | 1425 // --------------------------------------------------------------------------- |
1418 | 1426 |
1419 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1427 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1420 }; | 1428 }; |
1421 | 1429 |
1422 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1430 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |