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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 155954: Implement sending actions back to the render for media element context menus. (Closed)
Patch Set: remove uneeded bits. Created 11 years, 5 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
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 namespace WebKit { 45 namespace WebKit {
46 class WebDataSource; 46 class WebDataSource;
47 class WebDragData; 47 class WebDragData;
48 class WebForm; 48 class WebForm;
49 class WebWorker; 49 class WebWorker;
50 class WebWorkerClient; 50 class WebWorkerClient;
51 class WebMediaPlayer; 51 class WebMediaPlayer;
52 class WebMediaPlayerClient; 52 class WebMediaPlayerClient;
53 class WebNode;
53 class WebURLRequest; 54 class WebURLRequest;
54 class WebURLResponse; 55 class WebURLResponse;
55 class WebWidget; 56 class WebWidget;
56 struct WebPoint; 57 struct WebPoint;
57 struct WebPopupMenuInfo; 58 struct WebPopupMenuInfo;
58 struct WebRect; 59 struct WebRect;
59 struct WebURLError; 60 struct WebURLError;
60 } 61 }
61 62
62 class FilePath; 63 class FilePath;
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 virtual void RunFileChooser(bool multi_select, 609 virtual void RunFileChooser(bool multi_select,
609 const string16& title, 610 const string16& title,
610 const FilePath& initial_filename, 611 const FilePath& initial_filename,
611 WebFileChooserCallback* file_chooser) { 612 WebFileChooserCallback* file_chooser) {
612 delete file_chooser; 613 delete file_chooser;
613 } 614 }
614 615
615 // @abstract Shows a context menu with commands relevant to a specific 616 // @abstract Shows a context menu with commands relevant to a specific
616 // element on the current page. 617 // element on the current page.
617 // @param webview The WebView sending the delegate method. 618 // @param webview The WebView sending the delegate method.
618 // @param node The node(s) the context menu is being invoked on 619 // @param node_type The type of the node(s) the context menu is being
620 // invoked on
619 // @param x The x position of the mouse pointer (relative to the webview) 621 // @param x The x position of the mouse pointer (relative to the webview)
620 // @param y The y position of the mouse pointer (relative to the webview) 622 // @param y The y position of the mouse pointer (relative to the webview)
621 // @param link_url The absolute URL of the link that contains the node the 623 // @param link_url The absolute URL of the link that contains the node the
622 // mouse right clicked on 624 // mouse right clicked on
623 // @param image_url The absolute URL of the image that the mouse right 625 // @param image_url The absolute URL of the image that the mouse right
624 // clicked on 626 // clicked on
625 // @param page_url The URL of the page the mouse right clicked on 627 // @param page_url The URL of the page the mouse right clicked on
626 // @param frame_url The URL of the subframe the mouse right clicked on 628 // @param frame_url The URL of the subframe the mouse right clicked on
627 // @param media_params Extra attributed needed by the context menu for 629 // @param media_params Extra attributed needed by the context menu for
628 // media elements. 630 // media elements.
629 // @param selection_text The raw text of the selection that the mouse right 631 // @param selection_text The raw text of the selection that the mouse right
630 // clicked on 632 // clicked on
631 // @param misspelled_word The editable (possibily) misspelled word 633 // @param misspelled_word The editable (possibily) misspelled word
632 // in the Editor on which dictionary lookup for suggestions will be done. 634 // in the Editor on which dictionary lookup for suggestions will be done.
633 // @param edit_flags which edit operations the renderer believes are available 635 // @param edit_flags which edit operations the renderer believes are available
634 // @param security_info 636 // @param security_info
635 // @param frame_charset which indicates the character encoding of 637 // @param frame_charset which indicates the character encoding of
636 // the currently focused frame. 638 // the currently focused frame.
637 virtual void ShowContextMenu(WebView* webview, 639 virtual void ShowContextMenu(WebView* webview,
638 ContextNode node, 640 ContextNodeType node_type,
639 int x, 641 int x,
640 int y, 642 int y,
641 const GURL& link_url, 643 const GURL& link_url,
642 const GURL& image_url, 644 const GURL& image_url,
643 const GURL& page_url, 645 const GURL& page_url,
644 const GURL& frame_url, 646 const GURL& frame_url,
645 const ContextMenuMediaParams& media_params, 647 const ContextMenuMediaParams& media_params,
646 const std::wstring& selection_text, 648 const std::wstring& selection_text,
647 const std::wstring& misspelled_word, 649 const std::wstring& misspelled_word,
648 int edit_flags, 650 int edit_flags,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 virtual void DidAddHistoryItem() { } 847 virtual void DidAddHistoryItem() { }
846 848
847 WebViewDelegate() { } 849 WebViewDelegate() { }
848 virtual ~WebViewDelegate() { } 850 virtual ~WebViewDelegate() { }
849 851
850 private: 852 private:
851 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 853 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
852 }; 854 };
853 855
854 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 856 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698