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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2026813003: Enable external popup menu in Blimp, part 2/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "content/public/common/console_message_level.h" 14 #include "content/public/common/console_message_level.h"
14 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 16 #include "ipc/ipc_sender.h"
16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
17 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; 175 virtual blink::WebPageVisibilityState GetVisibilityState() = 0;
175 176
176 // Returns whether the RenderFrame in the renderer process has been created 177 // Returns whether the RenderFrame in the renderer process has been created
177 // and still has a connection. This is valid for all frames. 178 // and still has a connection. This is valid for all frames.
178 virtual bool IsRenderFrameLive() = 0; 179 virtual bool IsRenderFrameLive() = 0;
179 180
180 // Get the number of proxies to this frame, in all processes. Exposed for 181 // Get the number of proxies to this frame, in all processes. Exposed for
181 // use by resource metrics. 182 // use by resource metrics.
182 virtual int GetProxyCount() = 0; 183 virtual int GetProxyCount() = 0;
183 184
185 #if defined(USE_EXTERNAL_POPUP_MENU)
186 #if defined(OS_MACOSX)
187 // Select popup menu related methods (for external popup menus).
188 virtual void DidSelectPopupMenuItem(int selected_index) = 0;
189 virtual void DidCancelPopupMenu() = 0;
190 #else
191 virtual void DidSelectPopupMenuItems(
192 const std::vector<int>& selected_indices) = 0;
193 virtual void DidCancelPopupMenu() = 0;
194 #endif
195 #endif
196
184 private: 197 private:
185 // This interface should only be implemented inside content. 198 // This interface should only be implemented inside content.
186 friend class RenderFrameHostImpl; 199 friend class RenderFrameHostImpl;
187 RenderFrameHost() {} 200 RenderFrameHost() {}
188 }; 201 };
189 202
190 } // namespace content 203 } // namespace content
191 204
192 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 205 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/public/browser/web_contents_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698