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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void EmbedderDestroyed() {} | 60 virtual void EmbedderDestroyed() {} |
61 | 61 |
62 // Informs the delegate of a reply to the find request specified by | 62 // Informs the delegate of a reply to the find request specified by |
63 // |request_id|. | 63 // |request_id|. |
64 virtual void FindReply(int request_id, | 64 virtual void FindReply(int request_id, |
65 int number_of_matches, | 65 int number_of_matches, |
66 const gfx::Rect& selection_rect, | 66 const gfx::Rect& selection_rect, |
67 int active_match_ordinal, | 67 int active_match_ordinal, |
68 bool final_update) {} | 68 bool final_update) {} |
69 | 69 |
70 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 70 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {} |
71 | 71 |
72 // Requests setting the zoom level to the provided |zoom_level|. | 72 // Requests setting the zoom level to the provided |zoom_level|. |
73 virtual void SetZoom(double zoom_factor) {} | 73 virtual void SetZoom(double zoom_factor) {} |
74 | 74 |
75 virtual bool IsDragAndDropEnabled(); | 75 virtual bool IsDragAndDropEnabled(); |
76 | 76 |
77 // Returns whether the user agent for the guest is being overridden. | 77 // Returns whether the user agent for the guest is being overridden. |
78 virtual bool IsOverridingUserAgent() const; | 78 virtual bool IsOverridingUserAgent() const; |
79 | 79 |
80 // Notification that a load in the guest resulted in abort. Note that |url| | 80 // Notification that a load in the guest resulted in abort. Note that |url| |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 virtual void RunFileChooser(WebContents* web_contents, | 158 virtual void RunFileChooser(WebContents* web_contents, |
159 const FileChooserParams& params) {} | 159 const FileChooserParams& params) {} |
160 | 160 |
161 // Returns true if the context menu operation was handled by the delegate. | 161 // Returns true if the context menu operation was handled by the delegate. |
162 virtual bool HandleContextMenu(const ContextMenuParams& params); | 162 virtual bool HandleContextMenu(const ContextMenuParams& params); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace content | 165 } // namespace content |
166 | 166 |
167 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 167 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |