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

Side by Side Diff: chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h

Issue 1117893002: Moving extension code out of "components/" to avoid layering violations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_
7 7
8 #include "components/renderer_context_menu/context_menu_content_type.h" 8 #include "components/renderer_context_menu/context_menu_content_type.h"
9 9
10 namespace extensions {
11 class Extension;
12 }
13
10 // A ContextMenuContentType for <webview> guest. 14 // A ContextMenuContentType for <webview> guest.
11 // Guests are rendered inside chrome apps, but have most of the actions 15 // Guests are rendered inside chrome apps, but have most of the actions
12 // that a regular web page has. Currently actions/items that are suppressed from 16 // that a regular web page has. Currently actions/items that are suppressed from
13 // guests are: searching, printing, speech and instant. 17 // guests are: searching, printing, speech and instant.
14 class ContextMenuContentTypeWebView : public ContextMenuContentType { 18 class ContextMenuContentTypeWebView : public ContextMenuContentType {
15 public: 19 public:
16 ~ContextMenuContentTypeWebView() override; 20 ~ContextMenuContentTypeWebView() override;
17 21
18 // ContextMenuContentType overrides. 22 // ContextMenuContentType overrides.
19 bool SupportsGroup(int group) override; 23 bool SupportsGroup(int group) override;
20 24
21 protected: 25 protected:
22 ContextMenuContentTypeWebView(content::WebContents* web_contents, 26 ContextMenuContentTypeWebView(content::WebContents* web_contents,
23 const content::ContextMenuParams& params); 27 const content::ContextMenuParams& params);
28 const extensions::Extension* GetExtension() const;
lazyboy 2015/04/30 16:33:31 This should be private. Also the other GetExtensio
Deepak 2015/05/02 06:25:20 Done.
24 29
25 private: 30 private:
26 friend class ContextMenuContentTypeFactory; 31 friend class ContextMenuContentTypeFactory;
27 32
28 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeWebView); 33 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeWebView);
29 }; 34 };
30 35
31 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW _H_ 36 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698