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

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

Issue 149604: Begin implementation of the context menu for Video and Audio tags. (Closed)
Patch Set: Fix small style issues. 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/webmediaplayer_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.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-2008 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
11 // dialog box or otherwise handling a JavaScript window.alert() call, via the 11 // dialog box or otherwise handling a JavaScript window.alert() call, via the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 struct WebURLError; 59 struct WebURLError;
60 } 60 }
61 61
62 class FilePath; 62 class FilePath;
63 class SkBitmap; 63 class SkBitmap;
64 class WebDevToolsAgentDelegate; 64 class WebDevToolsAgentDelegate;
65 class WebFrame; 65 class WebFrame;
66 class WebMediaPlayerDelegate; 66 class WebMediaPlayerDelegate;
67 class WebPluginDelegate; 67 class WebPluginDelegate;
68 class WebView; 68 class WebView;
69 class WebWidget;
70 struct ContextMenuMediaParams;
69 struct WebPluginGeometry; 71 struct WebPluginGeometry;
70 struct WebPreferences; 72 struct WebPreferences;
71 73
72 enum NavigationGesture { 74 enum NavigationGesture {
73 NavigationGestureUser, // User initiated navigation/load. This is not 75 NavigationGestureUser, // User initiated navigation/load. This is not
74 // currently used due to the untrustworthy nature 76 // currently used due to the untrustworthy nature
75 // of userGestureHint (wasRunByUserGesture). See 77 // of userGestureHint (wasRunByUserGesture). See
76 // bug 1051891. 78 // bug 1051891.
77 NavigationGestureAuto, // Non-user initiated navigation / load. For example 79 NavigationGestureAuto, // Non-user initiated navigation / load. For example
78 // onload or setTimeout triggered document.location 80 // onload or setTimeout triggered document.location
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // @param webview The WebView sending the delegate method. 618 // @param webview The WebView sending the delegate method.
617 // @param node The node(s) the context menu is being invoked on 619 // @param node The node(s) the context menu is being invoked on
618 // @param x The x position of the mouse pointer (relative to the webview) 620 // @param x The x position of the mouse pointer (relative to the webview)
619 // @param y The y position of the mouse pointer (relative to the webview) 621 // @param y The y position of the mouse pointer (relative to the webview)
620 // @param link_url The absolute URL of the link that contains the node the 622 // @param link_url The absolute URL of the link that contains the node the
621 // mouse right clicked on 623 // mouse right clicked on
622 // @param image_url The absolute URL of the image that the mouse right 624 // @param image_url The absolute URL of the image that the mouse right
623 // clicked on 625 // clicked on
624 // @param page_url The URL of the page the mouse right clicked on 626 // @param page_url The URL of the page the mouse right clicked on
625 // @param frame_url The URL of the subframe the mouse right clicked on 627 // @param frame_url The URL of the subframe the mouse right clicked on
628 // @param media_params Extra attributed needed by the context menu for
629 // media elements.
626 // @param selection_text The raw text of the selection that the mouse right 630 // @param selection_text The raw text of the selection that the mouse right
627 // clicked on 631 // clicked on
628 // @param misspelled_word The editable (possibily) misspelled word 632 // @param misspelled_word The editable (possibily) misspelled word
629 // in the Editor on which dictionary lookup for suggestions will be done. 633 // in the Editor on which dictionary lookup for suggestions will be done.
630 // @param edit_flags which edit operations the renderer believes are available 634 // @param edit_flags which edit operations the renderer believes are available
631 // @param security_info 635 // @param security_info
632 // @param frame_charset which indicates the character encoding of 636 // @param frame_charset which indicates the character encoding of
633 // the currently focused frame. 637 // the currently focused frame.
634 virtual void ShowContextMenu(WebView* webview, 638 virtual void ShowContextMenu(WebView* webview,
635 ContextNode node, 639 ContextNode node,
636 int x, 640 int x,
637 int y, 641 int y,
638 const GURL& link_url, 642 const GURL& link_url,
639 const GURL& image_url, 643 const GURL& image_url,
640 const GURL& page_url, 644 const GURL& page_url,
641 const GURL& frame_url, 645 const GURL& frame_url,
646 const ContextMenuMediaParams& media_params,
642 const std::wstring& selection_text, 647 const std::wstring& selection_text,
643 const std::wstring& misspelled_word, 648 const std::wstring& misspelled_word,
644 int edit_flags, 649 int edit_flags,
645 const std::string& security_info, 650 const std::string& security_info,
646 const std::string& frame_charset) { 651 const std::string& frame_charset) {
647 } 652 }
648 653
649 // Starts a drag session with the supplied contextual information. 654 // Starts a drag session with the supplied contextual information.
650 // webview: The WebView sending the delegate method. 655 // webview: The WebView sending the delegate method.
651 // drop_data: a WebDropData struct which should contain all the necessary 656 // drop_data: a WebDropData struct which should contain all the necessary
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 virtual void DidAddHistoryItem() { } 846 virtual void DidAddHistoryItem() { }
842 847
843 WebViewDelegate() { } 848 WebViewDelegate() { }
844 virtual ~WebViewDelegate() { } 849 virtual ~WebViewDelegate() { }
845 850
846 private: 851 private:
847 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 852 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
848 }; 853 };
849 854
850 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 855 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webmediaplayer_impl.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698