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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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
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_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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu. h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu. h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h"
13 13
14 class RenderViewImpl;
15 namespace WebKit { 14 namespace WebKit {
16 class WebExternalPopupMenuClient; 15 class WebExternalPopupMenuClient;
17 } 16 }
18 17
18 namespace content {
19 class RenderViewImpl;
20
19 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu { 21 class ExternalPopupMenu : public WebKit::WebExternalPopupMenu {
20 public: 22 public:
21 ExternalPopupMenu(RenderViewImpl* render_view, 23 ExternalPopupMenu(RenderViewImpl* render_view,
22 const WebKit::WebPopupMenuInfo& popup_menu_info, 24 const WebKit::WebPopupMenuInfo& popup_menu_info,
23 WebKit::WebExternalPopupMenuClient* popup_menu_client); 25 WebKit::WebExternalPopupMenuClient* popup_menu_client);
24 26
25 virtual ~ExternalPopupMenu() {} 27 virtual ~ExternalPopupMenu() {}
26 28
27 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
28 // Called when the user has selected an item. |selected_item| is -1 if the 30 // Called when the user has selected an item. |selected_item| is -1 if the
(...skipping 11 matching lines...) Expand all
40 virtual void close(); 42 virtual void close();
41 43
42 private: 44 private:
43 RenderViewImpl* render_view_; 45 RenderViewImpl* render_view_;
44 WebKit::WebPopupMenuInfo popup_menu_info_; 46 WebKit::WebPopupMenuInfo popup_menu_info_;
45 WebKit::WebExternalPopupMenuClient* popup_menu_client_; 47 WebKit::WebExternalPopupMenuClient* popup_menu_client_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu); 49 DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu);
48 }; 50 };
49 51
52 } // namespace content
53
50 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_ 54 #endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
OLDNEW
« no previous file with comments | « content/renderer/dom_storage/webstoragenamespace_impl.cc ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698