| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 61 // Inform the BrowserPlugin that the guest has redirected a navigation. |
| 62 void LoadRedirect(const GURL& old_url, | 62 void LoadRedirect(const GURL& old_url, |
| 63 const GURL& new_url, | 63 const GURL& new_url, |
| 64 bool is_top_level); | 64 bool is_top_level); |
| 65 // Inform the BrowserPlugin that the guest has changed its title. |
| 66 void TitleChanged(const string16& title); |
| 65 // Tells the BrowserPlugin to advance the focus to the next (or previous) | 67 // Tells the BrowserPlugin to advance the focus to the next (or previous) |
| 66 // element. | 68 // element. |
| 67 void AdvanceFocus(bool reverse); | 69 void AdvanceFocus(bool reverse); |
| 68 | 70 |
| 69 // Informs the BrowserPlugin that the guest has started/stopped accepting | 71 // Informs the BrowserPlugin that the guest has started/stopped accepting |
| 70 // touch events. | 72 // touch events. |
| 71 void SetAcceptTouchEvents(bool accept); | 73 void SetAcceptTouchEvents(bool accept); |
| 72 | 74 |
| 73 // Indicates whether there are any Javascript listeners attached to a | 75 // Indicates whether there are any Javascript listeners attached to a |
| 74 // provided event_name. | 76 // provided event_name. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 EventListenerMap event_listener_map_; | 198 EventListenerMap event_listener_map_; |
| 197 #if defined(OS_WIN) | 199 #if defined(OS_WIN) |
| 198 base::SharedMemory shared_memory_; | 200 base::SharedMemory shared_memory_; |
| 199 #endif | 201 #endif |
| 200 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 202 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace content | 205 } // namespace content |
| 204 | 206 |
| 205 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 207 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |