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

Side by Side Diff: content/renderer/external_popup_menu.h

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/renderer/devtools_client.cc ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_EXTERNAL_POPUP_MENU_H_ 5 #ifndef CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
6 #define CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ 6 #define CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu. h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu. h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h"
11 11
12 class RenderView; 12 class RenderViewImpl;
13 namespace WebKit { 13 namespace WebKit {
14 class WebExternalPopupMenuClient; 14 class WebExternalPopupMenuClient;
15 } 15 }
16 16
17 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu { 17 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu {
18 public: 18 public:
19 ExternalPopupMenu(RenderView* render_view, 19 ExternalPopupMenu(RenderViewImpl* render_view,
20 const WebKit::WebPopupMenuInfo& popup_menu_info, 20 const WebKit::WebPopupMenuInfo& popup_menu_info,
21 WebKit::WebExternalPopupMenuClient* popup_menu_client); 21 WebKit::WebExternalPopupMenuClient* popup_menu_client);
22 22
23 virtual ~ExternalPopupMenu() {} 23 virtual ~ExternalPopupMenu() {}
24 24
25 // Called when the user has selected an item. |selected_item| is -1 if the 25 // Called when the user has selected an item. |selected_item| is -1 if the
26 // user canceled the popup. 26 // user canceled the popup.
27 void DidSelectItem(int selected_index); 27 void DidSelectItem(int selected_index);
28 28
29 // WebKit::WebExternalPopupMenu implementation: 29 // WebKit::WebExternalPopupMenu implementation:
30 virtual void show(const WebKit::WebRect& bounds); 30 virtual void show(const WebKit::WebRect& bounds);
31 virtual void close(); 31 virtual void close();
32 32
33 private: 33 private:
34 RenderView* render_view_; 34 RenderViewImpl* render_view_;
35 WebKit::WebPopupMenuInfo popup_menu_info_; 35 WebKit::WebPopupMenuInfo popup_menu_info_;
36 WebKit::WebExternalPopupMenuClient* popup_menu_client_; 36 WebKit::WebExternalPopupMenuClient* popup_menu_client_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu); 38 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu);
39 }; 39 };
40 40
41 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ 41 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools_client.cc ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698