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

Side by Side Diff: content/port/browser/render_view_host_delegate_view.h

Issue 197533008: Mac: ExternalPopupMenu::close should hide a showing popup menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 6 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/external_popup_menu.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 // This method should call RenderViewHost::DidSelectPopupMenuItem[s]() or 40 // This method should call RenderViewHost::DidSelectPopupMenuItem[s]() or
41 // RenderViewHost::DidCancelPopupMenu() based on the user action. 41 // RenderViewHost::DidCancelPopupMenu() based on the user action.
42 virtual void ShowPopupMenu(const gfx::Rect& bounds, 42 virtual void ShowPopupMenu(const gfx::Rect& bounds,
43 int item_height, 43 int item_height,
44 double item_font_size, 44 double item_font_size,
45 int selected_item, 45 int selected_item,
46 const std::vector<MenuItem>& items, 46 const std::vector<MenuItem>& items,
47 bool right_aligned, 47 bool right_aligned,
48 bool allow_multiple_selection) = 0; 48 bool allow_multiple_selection) = 0;
49 49
50 // Hides a popup menu opened by ShowPopupMenu().
51 virtual void HidePopupMenu() = 0;
52
50 // The user started dragging content of the specified type within the 53 // The user started dragging content of the specified type within the
51 // RenderView. Contextual information about the dragged content is supplied 54 // RenderView. Contextual information about the dragged content is supplied
52 // by DropData. If the delegate's view cannot start the drag for /any/ 55 // by DropData. If the delegate's view cannot start the drag for /any/
53 // reason, it must inform the renderer that the drag has ended; otherwise, 56 // reason, it must inform the renderer that the drag has ended; otherwise,
54 // this results in bugs like http://crbug.com/157134. 57 // this results in bugs like http://crbug.com/157134.
55 virtual void StartDragging(const DropData& drop_data, 58 virtual void StartDragging(const DropData& drop_data,
56 blink::WebDragOperationsMask allowed_ops, 59 blink::WebDragOperationsMask allowed_ops,
57 const gfx::ImageSkia& image, 60 const gfx::ImageSkia& image,
58 const gfx::Vector2d& image_offset, 61 const gfx::Vector2d& image_offset,
59 const DragEventSourceInfo& event_info) {} 62 const DragEventSourceInfo& event_info) {}
(...skipping 10 matching lines...) Expand all
70 // retrieved by doing a Shift-Tab. 73 // retrieved by doing a Shift-Tab.
71 virtual void TakeFocus(bool reverse) {} 74 virtual void TakeFocus(bool reverse) {}
72 75
73 protected: 76 protected:
74 virtual ~RenderViewHostDelegateView() {} 77 virtual ~RenderViewHostDelegateView() {}
75 }; 78 };
76 79
77 } // namespace content 80 } // namespace content
78 81
79 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 82 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698