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

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

Issue 164279: View Background Image Feature (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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
« no previous file with comments | « webkit/glue/context_menu_client_impl.cc ('k') | no next file » | 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 // @param node_type The type of the node(s) the context menu is being 619 // @param node_type The type of the node(s) the context menu is being
620 // invoked on 620 // invoked on
621 // @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)
622 // @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)
623 // @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
624 // mouse right clicked on 624 // mouse right clicked on
625 // @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
626 // clicked on 626 // clicked on
627 // @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
628 // @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
629 // @param media_params Extra attributed needed by the context menu for 629 // @param media_params Extra attributed needed by the context menu for
630 // media elements. 630 // media elements.
631 // @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
632 // clicked on 632 // clicked on
633 // @param misspelled_word The editable (possibily) misspelled word 633 // @param misspelled_word The editable (possibily) misspelled word
634 // 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.
635 // @param edit_flags which edit operations the renderer believes are available 635 // @param edit_flags which edit operations the renderer believes are available
636 // @param security_info 636 // @param security_info
637 // @param frame_charset which indicates the character encoding of 637 // @param frame_charset which indicates the character encoding of
638 // the currently focused frame. 638 // the currently focused frame.
639 virtual void ShowContextMenu(WebView* webview, 639 virtual void ShowContextMenu(WebView* webview,
640 ContextNodeType node_type, 640 ContextNodeType node_type,
641 int x, 641 int x,
642 int y, 642 int y,
643 const GURL& link_url, 643 const GURL& link_url,
644 const GURL& image_url, 644 const GURL& image_url,
645 const GURL& page_url, 645 const GURL& page_url,
646 const GURL& frame_url, 646 const GURL& frame_url,
647 const ContextMenuMediaParams& media_params, 647 const ContextMenuMediaParams& media_params,
648 const std::wstring& selection_text, 648 const std::wstring& selection_text,
649 const std::wstring& misspelled_word, 649 const std::wstring& misspelled_word,
650 int edit_flags, 650 int edit_flags,
651 const std::string& security_info, 651 const std::string& security_info,
652 const std::string& frame_charset) { 652 const std::string& frame_charset) {
653 } 653 }
654 654
655 // Easiest way for now to show support for background images.
656 // May want to roll this in some other way.
657 virtual void ShowContextMenu(WebView* webview,
658 ContextNodeType node_type,
659 int x,
660 int y,
661 const GURL& link_url,
662 const GURL& image_url,
663 const GURL& page_url,
664 const GURL& frame_url,
665 const GURL& bkg_url,
666 const ContextMenuMediaParams& media_params,
667 const std::wstring& selection_text,
668 const std::wstring& misspelled_word,
669 int edit_flags,
670 const std::string& security_info,
671 const std::string& frame_charset) {
672 }
673
655 // Starts a drag session with the supplied contextual information. 674 // Starts a drag session with the supplied contextual information.
656 // webview: The WebView sending the delegate method. 675 // webview: The WebView sending the delegate method.
657 // drop_data: a WebDropData struct which should contain all the necessary 676 // drop_data: a WebDropData struct which should contain all the necessary
658 // information for dragging data out of the webview. 677 // information for dragging data out of the webview.
659 virtual void StartDragging(WebView* webview, 678 virtual void StartDragging(WebView* webview,
660 const WebKit::WebDragData& drag_data) { 679 const WebKit::WebDragData& drag_data) {
661 } 680 }
662 681
663 // Returns the focus to the client. 682 // Returns the focus to the client.
664 // reverse: Whether the focus should go to the previous (if true) or the next 683 // reverse: Whether the focus should go to the previous (if true) or the next
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 virtual void DidAddHistoryItem() { } 866 virtual void DidAddHistoryItem() { }
848 867
849 WebViewDelegate() { } 868 WebViewDelegate() { }
850 virtual ~WebViewDelegate() { } 869 virtual ~WebViewDelegate() { }
851 870
852 private: 871 private:
853 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 872 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
854 }; 873 };
855 874
856 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 875 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/context_menu_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698