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

Side by Side Diff: chrome/renderer/render_view.h

Issue 6623015: Add a path for a web page to request the enumeration of a directory. This, t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 int& length); 421 int& length);
422 virtual void requestCheckingOfText( 422 virtual void requestCheckingOfText(
423 const WebKit::WebString& text, 423 const WebKit::WebString& text,
424 WebKit::WebTextCheckingCompletion* completion); 424 WebKit::WebTextCheckingCompletion* completion);
425 virtual WebKit::WebString autoCorrectWord( 425 virtual WebKit::WebString autoCorrectWord(
426 const WebKit::WebString& misspelled_word); 426 const WebKit::WebString& misspelled_word);
427 virtual void showSpellingUI(bool show); 427 virtual void showSpellingUI(bool show);
428 virtual bool isShowingSpellingUI(); 428 virtual bool isShowingSpellingUI();
429 virtual void updateSpellingUIWithMisspelledWord( 429 virtual void updateSpellingUIWithMisspelledWord(
430 const WebKit::WebString& word); 430 const WebKit::WebString& word);
431 virtual bool enumerateDirectory(
432 const WebKit::WebString& path,
433 WebKit::WebFileChooserCompletion* chooser_completion);
431 virtual void continuousSpellCheckingEnabledStateChanged(); 434 virtual void continuousSpellCheckingEnabledStateChanged();
432 virtual bool runFileChooser( 435 virtual bool runFileChooser(
433 const WebKit::WebFileChooserParams& params, 436 const WebKit::WebFileChooserParams& params,
434 WebKit::WebFileChooserCompletion* chooser_completion); 437 WebKit::WebFileChooserCompletion* chooser_completion);
435 virtual void runModalAlertDialog(WebKit::WebFrame* frame, 438 virtual void runModalAlertDialog(WebKit::WebFrame* frame,
436 const WebKit::WebString& message); 439 const WebKit::WebString& message);
437 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, 440 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame,
438 const WebKit::WebString& message); 441 const WebKit::WebString& message);
439 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, 442 virtual bool runModalPromptDialog(WebKit::WebFrame* frame,
440 const WebKit::WebString& message, 443 const WebKit::WebString& message,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 void OnDragTargetDragEnter(const WebDropData& drop_data, 850 void OnDragTargetDragEnter(const WebDropData& drop_data,
848 const gfx::Point& client_pt, 851 const gfx::Point& client_pt,
849 const gfx::Point& screen_pt, 852 const gfx::Point& screen_pt,
850 WebKit::WebDragOperationsMask operations_allowed); 853 WebKit::WebDragOperationsMask operations_allowed);
851 void OnDragTargetDragLeave(); 854 void OnDragTargetDragLeave();
852 void OnDragTargetDragOver(const gfx::Point& client_pt, 855 void OnDragTargetDragOver(const gfx::Point& client_pt,
853 const gfx::Point& screen_pt, 856 const gfx::Point& screen_pt,
854 WebKit::WebDragOperationsMask operations_allowed); 857 WebKit::WebDragOperationsMask operations_allowed);
855 void OnEnablePreferredSizeChangedMode(int flags); 858 void OnEnablePreferredSizeChangedMode(int flags);
856 void OnEnableViewSourceMode(); 859 void OnEnableViewSourceMode();
860 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths);
857 void OnExecuteCode(const ViewMsg_ExecuteCode_Params& params); 861 void OnExecuteCode(const ViewMsg_ExecuteCode_Params& params);
858 void OnExecuteEditCommand(const std::string& name, const std::string& value); 862 void OnExecuteEditCommand(const std::string& name, const std::string& value);
859 void OnExtensionMessageInvoke(const std::string& extension_id, 863 void OnExtensionMessageInvoke(const std::string& extension_id,
860 const std::string& function_name, 864 const std::string& function_name,
861 const ListValue& args, 865 const ListValue& args,
862 const GURL& event_url); 866 const GURL& event_url);
863 void OnFileChooserResponse(const std::vector<FilePath>& paths); 867 void OnFileChooserResponse(const std::vector<FilePath>& paths);
864 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); 868 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
865 void OnFindReplyAck(); 869 void OnFindReplyAck();
866 void OnEnableAccessibility(); 870 void OnEnableAccessibility();
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 1370
1367 // Misc ---------------------------------------------------------------------- 1371 // Misc ----------------------------------------------------------------------
1368 1372
1369 // The current and pending file chooser completion objects. If the queue is 1373 // The current and pending file chooser completion objects. If the queue is
1370 // nonempty, the first item represents the currently running file chooser 1374 // nonempty, the first item represents the currently running file chooser
1371 // callback, and the remaining elements are the other file chooser completion 1375 // callback, and the remaining elements are the other file chooser completion
1372 // still waiting to be run (in order). 1376 // still waiting to be run (in order).
1373 struct PendingFileChooser; 1377 struct PendingFileChooser;
1374 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; 1378 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_;
1375 1379
1380 // The current directory enumeration callback
1381 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_;
1382 int enumeration_completion_id_;
1383
1376 std::queue<linked_ptr<ViewMsg_ExecuteCode_Params> > 1384 std::queue<linked_ptr<ViewMsg_ExecuteCode_Params> >
1377 pending_code_execution_queue_; 1385 pending_code_execution_queue_;
1378 1386
1379 // ImageResourceFetchers schedule via DownloadImage. 1387 // ImageResourceFetchers schedule via DownloadImage.
1380 ImageResourceFetcherList image_fetchers_; 1388 ImageResourceFetcherList image_fetchers_;
1381 1389
1382 // The app info that we are processing. This is used when installing an app 1390 // The app info that we are processing. This is used when installing an app
1383 // via application definition. The in-progress web app is stored here while 1391 // via application definition. The in-progress web app is stored here while
1384 // its manifest and icons are downloaded. 1392 // its manifest and icons are downloaded.
1385 scoped_ptr<WebApplicationInfo> pending_app_info_; 1393 scoped_ptr<WebApplicationInfo> pending_app_info_;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 // bunch of stuff, you should probably create a helper class and put your 1456 // bunch of stuff, you should probably create a helper class and put your
1449 // data and methods on that to avoid bloating RenderView more. You can use 1457 // data and methods on that to avoid bloating RenderView more. You can use
1450 // the Observer interface to filter IPC messages and receive frame change 1458 // the Observer interface to filter IPC messages and receive frame change
1451 // notifications. 1459 // notifications.
1452 // --------------------------------------------------------------------------- 1460 // ---------------------------------------------------------------------------
1453 1461
1454 DISALLOW_COPY_AND_ASSIGN(RenderView); 1462 DISALLOW_COPY_AND_ASSIGN(RenderView);
1455 }; 1463 };
1456 1464
1457 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1465 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698