Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 10960003: Browser Plugin: Implement Back, Forward, and Go. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // A BrowserPluginGuest represents the browser side of browser <--> renderer 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of
7 // browser <--> guest renderer communication. The 'guest' renderer is a 7 // browser <--> guest renderer communication. The 'guest' renderer is a
8 // <browser> tag. 8 // <browser> tag.
9 // 9 //
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // The guest needs to notify the plugin in the embedder to start (or stop) 122 // The guest needs to notify the plugin in the embedder to start (or stop)
123 // accepting touch events. 123 // accepting touch events.
124 void SetIsAcceptingTouchEvents(bool accept); 124 void SetIsAcceptingTouchEvents(bool accept);
125 125
126 // Exposes the protected web_contents() from WebContentsObserver. 126 // Exposes the protected web_contents() from WebContentsObserver.
127 WebContents* GetWebContents(); 127 WebContents* GetWebContents();
128 128
129 // Overridden in tests. 129 // Overridden in tests.
130 virtual bool ViewTakeFocus(bool reverse); 130 virtual bool ViewTakeFocus(bool reverse);
131 // If possible, navigate the guest to |relative_index| entries away from the
132 // current navigation entry.
133 virtual void Go(int relative_index);
131 // Overridden in tests. 134 // Overridden in tests.
132 virtual void SetFocus(bool focused); 135 virtual void SetFocus(bool focused);
133 // Reload the guest. 136 // Reload the guest.
134 virtual void Reload(); 137 virtual void Reload();
135 // Stop loading the guest. 138 // Stop loading the guest.
136 virtual void Stop(); 139 virtual void Stop();
137 140
138 private: 141 private:
139 friend class TestBrowserPluginGuest; 142 friend class TestBrowserPluginGuest;
140 143
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 IDMap<RenderViewHost> pending_updates_; 180 IDMap<RenderViewHost> pending_updates_;
178 int pending_update_counter_; 181 int pending_update_counter_;
179 base::TimeDelta guest_hang_timeout_; 182 base::TimeDelta guest_hang_timeout_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 184 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
182 }; 185 };
183 186
184 } // namespace content 187 } // namespace content
185 188
186 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 189 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698