| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool ShouldGuestBeFocused() const; | 113 bool ShouldGuestBeFocused() const; |
| 114 | 114 |
| 115 // Inform the BrowserPlugin that the guest's contentWindow is ready, | 115 // Inform the BrowserPlugin that the guest's contentWindow is ready, |
| 116 // and provide it with a routing ID to grab it. | 116 // and provide it with a routing ID to grab it. |
| 117 void GuestContentWindowReady(int content_window_routing_id); | 117 void GuestContentWindowReady(int content_window_routing_id); |
| 118 | 118 |
| 119 // Informs the BrowserPlugin that the guest has started/stopped accepting | 119 // Informs the BrowserPlugin that the guest has started/stopped accepting |
| 120 // touch events. | 120 // touch events. |
| 121 void SetAcceptTouchEvents(bool accept); | 121 void SetAcceptTouchEvents(bool accept); |
| 122 | 122 |
| 123 // Requests media access permission from the embedder. |
| 124 void RequestMediaAccess(int request_id); |
| 125 // Informs the BrowserPlugin that the guest's request for media access has |
| 126 // been allowed or denied by the embedder. |
| 127 void RespondMediaAccess(int request_id, bool allow); |
| 128 |
| 123 // Tells the BrowserPlugin to tell the guest to navigate to the previous | 129 // Tells the BrowserPlugin to tell the guest to navigate to the previous |
| 124 // navigation entry in the navigation history. | 130 // navigation entry in the navigation history. |
| 125 void Back(); | 131 void Back(); |
| 126 // Tells the BrowserPlugin to tell the guest to navigate to the next | 132 // Tells the BrowserPlugin to tell the guest to navigate to the next |
| 127 // navigation entry in the navigation history. | 133 // navigation entry in the navigation history. |
| 128 void Forward(); | 134 void Forward(); |
| 129 // Tells the BrowserPlugin to tell the guest to navigate to a position | 135 // Tells the BrowserPlugin to tell the guest to navigate to a position |
| 130 // relative to the current index in its navigation history. | 136 // relative to the current index in its navigation history. |
| 131 void Go(int relativeIndex); | 137 void Go(int relativeIndex); |
| 132 // Tells the BrowserPlugin to terminate the guest process. | 138 // Tells the BrowserPlugin to terminate the guest process. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 // the changes are not always obvious. For example, there is a maximum | 339 // the changes are not always obvious. For example, there is a maximum |
| 334 // number of entries and earlier ones will automatically be pruned. | 340 // number of entries and earlier ones will automatically be pruned. |
| 335 int current_nav_entry_index_; | 341 int current_nav_entry_index_; |
| 336 int nav_entry_count_; | 342 int nav_entry_count_; |
| 337 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 343 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 338 }; | 344 }; |
| 339 | 345 |
| 340 } // namespace content | 346 } // namespace content |
| 341 | 347 |
| 342 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 348 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |