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

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

Issue 267103002: Ignore title parameter for navigator.registerProtocolHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove all title references Created 6 years, 7 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 bool enter_fullscreen) {} 365 bool enter_fullscreen) {}
366 virtual bool IsFullscreenForTabOrPending( 366 virtual bool IsFullscreenForTabOrPending(
367 const WebContents* web_contents) const; 367 const WebContents* web_contents) const;
368 368
369 // Register a new handler for URL requests with the given scheme. 369 // Register a new handler for URL requests with the given scheme.
370 // |user_gesture| is true if the registration is made in the context of a user 370 // |user_gesture| is true if the registration is made in the context of a user
371 // gesture. 371 // gesture.
372 virtual void RegisterProtocolHandler(WebContents* web_contents, 372 virtual void RegisterProtocolHandler(WebContents* web_contents,
373 const std::string& protocol, 373 const std::string& protocol,
374 const GURL& url, 374 const GURL& url,
375 const base::string16& title,
376 bool user_gesture) {} 375 bool user_gesture) {}
377 376
378 // Result of string search in the page. This includes the number of matches 377 // Result of string search in the page. This includes the number of matches
379 // found and the selection rect (in screen coordinates) for the string found. 378 // found and the selection rect (in screen coordinates) for the string found.
380 // If |final_update| is false, it indicates that more results follow. 379 // If |final_update| is false, it indicates that more results follow.
381 virtual void FindReply(WebContents* web_contents, 380 virtual void FindReply(WebContents* web_contents,
382 int request_id, 381 int request_id,
383 int number_of_matches, 382 int number_of_matches,
384 const gfx::Rect& selection_rect, 383 const gfx::Rect& selection_rect,
385 int active_match_ordinal, 384 int active_match_ordinal,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // Called when |this| is no longer the WebContentsDelegate for |source|. 475 // Called when |this| is no longer the WebContentsDelegate for |source|.
477 void Detach(WebContents* source); 476 void Detach(WebContents* source);
478 477
479 // The WebContents that this is currently a delegate for. 478 // The WebContents that this is currently a delegate for.
480 std::set<WebContents*> attached_contents_; 479 std::set<WebContents*> attached_contents_;
481 }; 480 };
482 481
483 } // namespace content 482 } // namespace content
484 483
485 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 484 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698