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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 const GURL& new_url, | 63 const GURL& new_url, |
| 64 bool is_top_level); | 64 bool is_top_level); |
| 65 // 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) |
| 66 // element. | 66 // element. |
| 67 void AdvanceFocus(bool reverse); | 67 void AdvanceFocus(bool reverse); |
| 68 | 68 |
| 69 // Informs the BrowserPlugin that the guest has started/stopped accepting | 69 // Informs the BrowserPlugin that the guest has started/stopped accepting |
| 70 // touch events. | 70 // touch events. |
| 71 void SetAcceptTouchEvents(bool accept); | 71 void SetAcceptTouchEvents(bool accept); |
| 72 | 72 |
| 73 // Requests the embedder (browser process) for media access permission. | |
|
Charlie Reis
2012/10/17 06:18:45
nit: Requests media access permission from the emb
lazyboy
2012/10/17 09:09:53
Done.
| |
| 74 void RequestMediaAccess(int request_id); | |
| 75 // Informs the BrowserPlugin that the guest's request to media access has been | |
|
Charlie Reis
2012/10/17 06:18:45
Heh, in this case you do want "for" rather than "t
lazyboy
2012/10/17 09:09:53
Done.
| |
| 76 // allowed or denied. | |
| 77 void AllowMediaAccess(int request_id, bool allow); | |
| 78 | |
| 73 // Indicates whether there are any Javascript listeners attached to a | 79 // Indicates whether there are any Javascript listeners attached to a |
| 74 // provided event_name. | 80 // provided event_name. |
| 75 bool HasListeners(const std::string& event_name); | 81 bool HasListeners(const std::string& event_name); |
| 76 // Add a custom event listener to this BrowserPlugin instance. | 82 // Add a custom event listener to this BrowserPlugin instance. |
| 77 bool AddEventListener(const std::string& event_name, | 83 bool AddEventListener(const std::string& event_name, |
| 78 v8::Local<v8::Function> function); | 84 v8::Local<v8::Function> function); |
| 79 // Remove a custom event listener from this BrowserPlugin instance. | 85 // Remove a custom event listener from this BrowserPlugin instance. |
| 80 bool RemoveEventListener(const std::string& event_name, | 86 bool RemoveEventListener(const std::string& event_name, |
| 81 v8::Local<v8::Function> function); | 87 v8::Local<v8::Function> function); |
| 82 // Tells the BrowserPlugin to tell the guest to navigate to the previous | 88 // Tells the BrowserPlugin to tell the guest to navigate to the previous |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 EventListenerMap event_listener_map_; | 205 EventListenerMap event_listener_map_; |
| 200 #if defined(OS_WIN) | 206 #if defined(OS_WIN) |
| 201 base::SharedMemory shared_memory_; | 207 base::SharedMemory shared_memory_; |
| 202 #endif | 208 #endif |
| 203 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 204 }; | 210 }; |
| 205 | 211 |
| 206 } // namespace content | 212 } // namespace content |
| 207 | 213 |
| 208 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |