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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 // Sets focus to the location bar or some other place that is appropriate. 204 // Sets focus to the location bar or some other place that is appropriate.
205 // This is called when the tab wants to encourage user input, like for the 205 // This is called when the tab wants to encourage user input, like for the
206 // new tab page. 206 // new tab page.
207 virtual void SetFocusToLocationBar(bool select_all) {} 207 virtual void SetFocusToLocationBar(bool select_all) {}
208 208
209 // Returns whether the page should be focused when transitioning from crashed 209 // Returns whether the page should be focused when transitioning from crashed
210 // to live. Default is true. 210 // to live. Default is true.
211 virtual bool ShouldFocusPageAfterCrash(); 211 virtual bool ShouldFocusPageAfterCrash();
212 212
213 // Called when a popup select is about to be displayed. The delegate can use
214 // this to disable inactive rendering for the frame in the window the select
215 // is opened within if necessary.
216 virtual void RenderWidgetShowing() {}
217
218 // This is called when WebKit tells us that it is done tabbing through 213 // This is called when WebKit tells us that it is done tabbing through
219 // controls on the page. Provides a way for WebContentsDelegates to handle 214 // controls on the page. Provides a way for WebContentsDelegates to handle
220 // this. Returns true if the delegate successfully handled it. 215 // this. Returns true if the delegate successfully handled it.
221 virtual bool TakeFocus(WebContents* source, 216 virtual bool TakeFocus(WebContents* source,
222 bool reverse); 217 bool reverse);
223 218
224 // Invoked when the page loses mouse capture. 219 // Invoked when the page loses mouse capture.
225 virtual void LostCapture() {} 220 virtual void LostCapture() {}
226 221
227 // Notification that |contents| has gained focus. 222 // Notification that |contents| has gained focus.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // Called when |this| is no longer the WebContentsDelegate for |source|. 471 // Called when |this| is no longer the WebContentsDelegate for |source|.
477 void Detach(WebContents* source); 472 void Detach(WebContents* source);
478 473
479 // The WebContents that this is currently a delegate for. 474 // The WebContents that this is currently a delegate for.
480 std::set<WebContents*> attached_contents_; 475 std::set<WebContents*> attached_contents_;
481 }; 476 };
482 477
483 } // namespace content 478 } // namespace content
484 479
485 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 480 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698