OLD | NEW |
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 "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/common/media_stream_request.h" | 13 #include "content/public/common/media_stream_request.h" |
14 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
15 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
16 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
| 20 namespace base { |
| 21 class DictionaryValue; |
| 22 } // namespace base |
| 23 |
20 namespace blink { | 24 namespace blink { |
21 class WebGestureEvent; | 25 class WebGestureEvent; |
22 } // namespace blink | 26 } // namespace blink |
23 | 27 |
24 namespace content { | 28 namespace content { |
25 | 29 |
26 class ColorChooser; | 30 class ColorChooser; |
27 class JavaScriptDialogManager; | 31 class JavaScriptDialogManager; |
28 class WebContents; | 32 class WebContents; |
29 struct ColorSuggestion; | 33 struct ColorSuggestion; |
(...skipping 16 matching lines...) Expand all Loading... |
46 int32 line_no, | 50 int32 line_no, |
47 const base::string16& source_id) {} | 51 const base::string16& source_id) {} |
48 | 52 |
49 // Request the delegate to close this guest, and do whatever cleanup it needs | 53 // Request the delegate to close this guest, and do whatever cleanup it needs |
50 // to do. | 54 // to do. |
51 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a | 55 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a |
52 // WebContentsDelegate. | 56 // WebContentsDelegate. |
53 virtual void Close() {} | 57 virtual void Close() {} |
54 | 58 |
55 // Notification that the embedder has completed attachment. | 59 // Notification that the embedder has completed attachment. |
56 virtual void DidAttach() {} | 60 virtual void DidAttach(const base::DictionaryValue& extra_params) {} |
57 | 61 |
58 // Informs the delegate that the guest render process is gone. |status| | 62 // Informs the delegate that the guest render process is gone. |status| |
59 // indicates whether the guest was killed, crashed, or was terminated | 63 // indicates whether the guest was killed, crashed, or was terminated |
60 // gracefully. | 64 // gracefully. |
61 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a | 65 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a |
62 // WebContentsDelegate. | 66 // WebContentsDelegate. |
63 virtual void GuestProcessGone(base::TerminationStatus status) {} | 67 virtual void GuestProcessGone(base::TerminationStatus status) {} |
64 | 68 |
65 // Informs the delegate that the embedder has been destroyed. | 69 // Informs the delegate that the embedder has been destroyed. |
66 virtual void EmbedderDestroyed() {} | 70 virtual void EmbedderDestroyed() {} |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // and dispatched after the touches return without being "preventDefault()"ed. | 221 // and dispatched after the touches return without being "preventDefault()"ed. |
218 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a | 222 // TODO(fsamuel): Delete this once BrowserPluginGuest is no longer a |
219 // WebContentsDelegate. | 223 // WebContentsDelegate. |
220 virtual bool PreHandleGestureEvent(WebContents* source, | 224 virtual bool PreHandleGestureEvent(WebContents* source, |
221 const blink::WebGestureEvent& event); | 225 const blink::WebGestureEvent& event); |
222 }; | 226 }; |
223 | 227 |
224 } // namespace content | 228 } // namespace content |
225 | 229 |
226 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 230 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |