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

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

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 years 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_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } // namespace base 15 } // namespace base
16 16
17 namespace gfx { 17 namespace gfx {
18 class Size; 18 class Size;
19 } // namespace gfx 19 } // namespace gfx
20 20
21 namespace content { 21 namespace content {
22 22
23 class GuestHost; 23 class GuestHost;
24 24
25 // Objects implement this interface to get notified about changes in the guest 25 // Objects implement this interface to get notified about changes in the guest
26 // WebContents and to provide necessary functionality. 26 // WebContents and to provide necessary functionality.
27 class CONTENT_EXPORT BrowserPluginGuestDelegate { 27 class CONTENT_EXPORT BrowserPluginGuestDelegate {
28 public: 28 public:
29 BrowserPluginGuestDelegate();
29 virtual ~BrowserPluginGuestDelegate() {} 30 virtual ~BrowserPluginGuestDelegate() {}
30 31
31 // Notification that the embedder will begin attachment. This is called 32 // Notification that the embedder will begin attachment. This is called
32 // prior to resuming resource loads. |element_instance_id| uniquely identifies 33 // prior to resuming resource loads. |element_instance_id| uniquely identifies
33 // the element that will serve as a container for the guest. 34 // the element that will serve as a container for the guest.
34 // Once the content embedder has completed setting up state for attachment, it 35 // Once the content embedder has completed setting up state for attachment, it
35 // must call the |completion_callback| to complete attachment. 36 // must call the |completion_callback| to complete attachment.
36 virtual void WillAttach(content::WebContents* embedder_web_contents, 37 virtual void WillAttach(content::WebContents* embedder_web_contents,
37 int element_instance_id, 38 int element_instance_id,
38 bool is_full_page_plugin, 39 bool is_full_page_plugin,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Sets the position of the context menu for the guest contents. The value 91 // Sets the position of the context menu for the guest contents. The value
91 // reported from the guest renderer should be ignored. The reported value 92 // reported from the guest renderer should be ignored. The reported value
92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is 93 // fromt he guest renderer is incorrect in situations where BrowserPlugin is
93 // subject to CSS transforms. 94 // subject to CSS transforms.
94 virtual void SetContextMenuPosition(const gfx::Point& position) {} 95 virtual void SetContextMenuPosition(const gfx::Point& position) {}
95 }; 96 };
96 97
97 } // namespace content 98 } // namespace content
98 99
99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 100 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698