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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Inform the BrowserPlugin that the guest has started loading a new page. | 67 // Inform the BrowserPlugin that the guest has started loading a new page. |
68 void LoadStart(const GURL& url, bool is_top_level); | 68 void LoadStart(const GURL& url, bool is_top_level); |
69 // Inform the BrowserPlugin that the guest has finished loading a new page. | 69 // Inform the BrowserPlugin that the guest has finished loading a new page. |
70 void LoadStop(); | 70 void LoadStop(); |
71 // Inform the BrowserPlugin that the guest has aborted loading a new page. | 71 // Inform the BrowserPlugin that the guest has aborted loading a new page. |
72 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); | 72 void LoadAbort(const GURL& url, bool is_top_level, const std::string& type); |
73 // Inform the BrowserPlugin that the guest has redirected a navigation. | 73 // Inform the BrowserPlugin that the guest has redirected a navigation. |
74 void LoadRedirect(const GURL& old_url, | 74 void LoadRedirect(const GURL& old_url, |
75 const GURL& new_url, | 75 const GURL& new_url, |
76 bool is_top_level); | 76 bool is_top_level); |
| 77 // Inform the BrowserPlugin that the guest has changed its title. |
| 78 void TitleChange(const string16& title); |
77 // Tells the BrowserPlugin to advance the focus to the next (or previous) | 79 // Tells the BrowserPlugin to advance the focus to the next (or previous) |
78 // element. | 80 // element. |
79 void AdvanceFocus(bool reverse); | 81 void AdvanceFocus(bool reverse); |
80 | 82 |
81 // Inform the BrowserPlugin that the guest's contentWindow is ready, | 83 // Inform the BrowserPlugin that the guest's contentWindow is ready, |
82 // and provide it with a routing ID to grab it. | 84 // and provide it with a routing ID to grab it. |
83 void GuestContentWindowReady(int content_window_routing_id); | 85 void GuestContentWindowReady(int content_window_routing_id); |
84 | 86 |
85 // Informs the BrowserPlugin that the guest has started/stopped accepting | 87 // Informs the BrowserPlugin that the guest has started/stopped accepting |
86 // touch events. | 88 // touch events. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // the changes are not always obvious. For example, there is a maximum | 253 // the changes are not always obvious. For example, there is a maximum |
252 // number of entries and earlier ones will automatically be pruned. | 254 // number of entries and earlier ones will automatically be pruned. |
253 int current_nav_entry_index_; | 255 int current_nav_entry_index_; |
254 int nav_entry_count_; | 256 int nav_entry_count_; |
255 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 257 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
256 }; | 258 }; |
257 | 259 |
258 } // namespace content | 260 } // namespace content |
259 | 261 |
260 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 262 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |