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