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

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

Issue 1992393002: Enable external popup menu in Blimp, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update blimp_engine.gn Created 4 years, 6 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
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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void UpdateDragCursor(blink::WebDragOperation operation) {} 58 virtual void UpdateDragCursor(blink::WebDragOperation operation) {}
59 59
60 // Notification that view for this delegate got the focus. 60 // Notification that view for this delegate got the focus.
61 virtual void GotFocus() {} 61 virtual void GotFocus() {}
62 62
63 // Callback to inform the browser that the page is returning the focus to 63 // Callback to inform the browser that the page is returning the focus to
64 // the browser's chrome. If reverse is true, it means the focus was 64 // the browser's chrome. If reverse is true, it means the focus was
65 // retrieved by doing a Shift-Tab. 65 // retrieved by doing a Shift-Tab.
66 virtual void TakeFocus(bool reverse) {} 66 virtual void TakeFocus(bool reverse) {}
67 67
68 #if defined(OS_MACOSX) || defined(OS_ANDROID) 68 #if defined(USE_EXTERNAL_POPUP_MENU)
69 // Shows a popup menu with the specified items. 69 // Shows a popup menu with the specified items.
70 // This method should call RenderFrameHost::DidSelectPopupMenuItem[s]() or 70 // This method should call RenderFrameHost::DidSelectPopupMenuItem[s]() or
71 // RenderFrameHost::DidCancelPopupMenu() based on the user action. 71 // RenderFrameHost::DidCancelPopupMenu() based on the user action.
72 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host, 72 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host,
73 const gfx::Rect& bounds, 73 const gfx::Rect& bounds,
74 int item_height, 74 int item_height,
75 double item_font_size, 75 double item_font_size,
76 int selected_item, 76 int selected_item,
77 const std::vector<MenuItem>& items, 77 const std::vector<MenuItem>& items,
78 bool right_aligned, 78 bool right_aligned,
79 bool allow_multiple_selection) {}; 79 bool allow_multiple_selection) {};
80 80
81 // Hides a popup menu opened by ShowPopupMenu(). 81 // Hides a popup menu opened by ShowPopupMenu().
82 virtual void HidePopupMenu() {}; 82 virtual void HidePopupMenu() {};
83 #endif 83 #endif
84 84
85 protected: 85 protected:
86 virtual ~RenderViewHostDelegateView() {} 86 virtual ~RenderViewHostDelegateView() {}
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 91 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698