| OLD | NEW |
| 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_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void UpdateRect(int message_id, | 51 void UpdateRect(int message_id, |
| 52 const BrowserPluginMsg_UpdateRect_Params& params); | 52 const BrowserPluginMsg_UpdateRect_Params& params); |
| 53 // Inform the BrowserPlugin that its guest has crashed. | 53 // Inform the BrowserPlugin that its guest has crashed. |
| 54 void GuestCrashed(); | 54 void GuestCrashed(); |
| 55 // Informs the BrowserPlugin that the guest has navigated to a new URL. | 55 // Informs the BrowserPlugin that the guest has navigated to a new URL. |
| 56 void DidNavigate(const GURL& url, int process_id); | 56 void DidNavigate(const GURL& url, int process_id); |
| 57 // Inform the BrowserPlugin that the guest has started loading a new page. | 57 // Inform the BrowserPlugin that the guest has started loading a new page. |
| 58 void LoadStart(const GURL& url, bool is_top_level); | 58 void LoadStart(const GURL& url, bool is_top_level); |
| 59 // Inform the BrowserPlugin that the guest has aborted loading a new page. | 59 // Inform the BrowserPlugin that the guest has aborted loading a new page. |
| 60 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); | 60 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); |
| 61 // Inform the BrowserPlugin that the guest has redirected a navigation. |
| 62 void LoadRedirect(const GURL& old_url, |
| 63 const GURL& new_url, |
| 64 bool is_top_level); |
| 61 // Tells the BrowserPlugin to advance the focus to the next (or previous) | 65 // Tells the BrowserPlugin to advance the focus to the next (or previous) |
| 62 // element. | 66 // element. |
| 63 void AdvanceFocus(bool reverse); | 67 void AdvanceFocus(bool reverse); |
| 64 | 68 |
| 65 // Informs the BrowserPlugin that the guest has started/stopped accepting | 69 // Informs the BrowserPlugin that the guest has started/stopped accepting |
| 66 // touch events. | 70 // touch events. |
| 67 void SetAcceptTouchEvents(bool accept); | 71 void SetAcceptTouchEvents(bool accept); |
| 68 | 72 |
| 69 // Indicates whether there are any Javascript listeners attached to a | 73 // Indicates whether there are any Javascript listeners attached to a |
| 70 // provided event_name. | 74 // provided event_name. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 EventListenerMap event_listener_map_; | 196 EventListenerMap event_listener_map_; |
| 193 #if defined(OS_WIN) | 197 #if defined(OS_WIN) |
| 194 base::SharedMemory shared_memory_; | 198 base::SharedMemory shared_memory_; |
| 195 #endif | 199 #endif |
| 196 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 200 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 } // namespace content | 203 } // namespace content |
| 200 | 204 |
| 201 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 205 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |