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_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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 bool enter_fullscreen) {} | 370 bool enter_fullscreen) {} |
371 virtual bool IsFullscreenForTabOrPending( | 371 virtual bool IsFullscreenForTabOrPending( |
372 const WebContents* web_contents) const; | 372 const WebContents* web_contents) const; |
373 | 373 |
374 // Register a new handler for URL requests with the given scheme. | 374 // Register a new handler for URL requests with the given scheme. |
375 // |user_gesture| is true if the registration is made in the context of a user | 375 // |user_gesture| is true if the registration is made in the context of a user |
376 // gesture. | 376 // gesture. |
377 virtual void RegisterProtocolHandler(WebContents* web_contents, | 377 virtual void RegisterProtocolHandler(WebContents* web_contents, |
378 const std::string& protocol, | 378 const std::string& protocol, |
379 const GURL& url, | 379 const GURL& url, |
380 const base::string16& title, | |
381 bool user_gesture) {} | 380 bool user_gesture) {} |
382 | 381 |
383 // Result of string search in the page. This includes the number of matches | 382 // Result of string search in the page. This includes the number of matches |
384 // found and the selection rect (in screen coordinates) for the string found. | 383 // found and the selection rect (in screen coordinates) for the string found. |
385 // If |final_update| is false, it indicates that more results follow. | 384 // If |final_update| is false, it indicates that more results follow. |
386 virtual void FindReply(WebContents* web_contents, | 385 virtual void FindReply(WebContents* web_contents, |
387 int request_id, | 386 int request_id, |
388 int number_of_matches, | 387 int number_of_matches, |
389 const gfx::Rect& selection_rect, | 388 const gfx::Rect& selection_rect, |
390 int active_match_ordinal, | 389 int active_match_ordinal, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 // Called when |this| is no longer the WebContentsDelegate for |source|. | 479 // Called when |this| is no longer the WebContentsDelegate for |source|. |
481 void Detach(WebContents* source); | 480 void Detach(WebContents* source); |
482 | 481 |
483 // The WebContents that this is currently a delegate for. | 482 // The WebContents that this is currently a delegate for. |
484 std::set<WebContents*> attached_contents_; | 483 std::set<WebContents*> attached_contents_; |
485 }; | 484 }; |
486 | 485 |
487 } // namespace content | 486 } // namespace content |
488 | 487 |
489 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |