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

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

Issue 16510: Fixes bug 1925 (context menus for text selections in... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 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_node_types.h ('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-2008 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 const std::wstring& title, 542 const std::wstring& title,
543 const std::wstring& initial_filename, 543 const std::wstring& initial_filename,
544 const std::wstring& filter, 544 const std::wstring& filter,
545 WebFileChooserCallback* file_chooser) { 545 WebFileChooserCallback* file_chooser) {
546 delete file_chooser; 546 delete file_chooser;
547 } 547 }
548 548
549 // @abstract Shows a context menu with commands relevant to a specific 549 // @abstract Shows a context menu with commands relevant to a specific
550 // element on the current page. 550 // element on the current page.
551 // @param webview The WebView sending the delegate method. 551 // @param webview The WebView sending the delegate method.
552 // @param type The type of node(s) the context menu is being invoked on 552 // @param node The node(s) the context menu is being invoked on
553 // @param x The x position of the mouse pointer (relative to the webview) 553 // @param x The x position of the mouse pointer (relative to the webview)
554 // @param y The y position of the mouse pointer (relative to the webview) 554 // @param y The y position of the mouse pointer (relative to the webview)
555 // @param link_url The absolute URL of the link that contains the node the 555 // @param link_url The absolute URL of the link that contains the node the
556 // mouse right clicked on 556 // mouse right clicked on
557 // @param image_url The absolute URL of the image that the mouse right 557 // @param image_url The absolute URL of the image that the mouse right
558 // clicked on 558 // clicked on
559 // @param page_url The URL of the page the mouse right clicked on 559 // @param page_url The URL of the page the mouse right clicked on
560 // @param frame_url The URL of the subframe the mouse right clicked on 560 // @param frame_url The URL of the subframe the mouse right clicked on
561 // @param selection_text The raw text of the selection that the mouse right 561 // @param selection_text The raw text of the selection that the mouse right
562 // clicked on 562 // clicked on
563 // @param misspelled_word The editable (possibily) misspelled word 563 // @param misspelled_word The editable (possibily) misspelled word
564 // in the Editor on which dictionary lookup for suggestions will be done. 564 // in the Editor on which dictionary lookup for suggestions will be done.
565 // @param edit_flags Which edit operations the renderer believes are available 565 // @param edit_flags Which edit operations the renderer believes are available
566 // @param frame_encoding Which indicates the encoding of current focused 566 // @param frame_encoding Which indicates the encoding of current focused
567 // sub frame. 567 // sub frame.
568 virtual void ShowContextMenu(WebView* webview, 568 virtual void ShowContextMenu(WebView* webview,
569 ContextNode::Type type, 569 ContextNode node,
570 int x, 570 int x,
571 int y, 571 int y,
572 const GURL& link_url, 572 const GURL& link_url,
573 const GURL& image_url, 573 const GURL& image_url,
574 const GURL& page_url, 574 const GURL& page_url,
575 const GURL& frame_url, 575 const GURL& frame_url,
576 const std::wstring& selection_text, 576 const std::wstring& selection_text,
577 const std::wstring& misspelled_word, 577 const std::wstring& misspelled_word,
578 int edit_flags, 578 int edit_flags,
579 const std::string& security_info) { 579 const std::string& security_info) {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 770
771 WebViewDelegate() { } 771 WebViewDelegate() { }
772 virtual ~WebViewDelegate() { } 772 virtual ~WebViewDelegate() { }
773 773
774 private: 774 private:
775 DISALLOW_EVIL_CONSTRUCTORS(WebViewDelegate); 775 DISALLOW_EVIL_CONSTRUCTORS(WebViewDelegate);
776 }; 776 };
777 777
778 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H__ 778 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H__
779 779
OLDNEW
« no previous file with comments | « webkit/glue/context_node_types.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698