| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 int active_match_ordinal, | 384 int active_match_ordinal, |
| 385 bool final_update) {} | 385 bool final_update) {} |
| 386 | 386 |
| 387 #if defined(OS_ANDROID) | 387 #if defined(OS_ANDROID) |
| 388 // Provides the rects of the current find-in-page matches. | 388 // Provides the rects of the current find-in-page matches. |
| 389 // Sent as a reply to RequestFindMatchRects. | 389 // Sent as a reply to RequestFindMatchRects. |
| 390 virtual void FindMatchRectsReply(WebContents* web_contents, | 390 virtual void FindMatchRectsReply(WebContents* web_contents, |
| 391 int version, | 391 int version, |
| 392 const std::vector<gfx::RectF>& rects, | 392 const std::vector<gfx::RectF>& rects, |
| 393 const gfx::RectF& active_rect) {} | 393 const gfx::RectF& active_rect) {} |
| 394 | |
| 395 // Request permission to access protected media identifier. The callback will | |
| 396 // tell whether it's allowed. | |
| 397 virtual void RequestProtectedMediaIdentifierPermission( | |
| 398 const WebContents* web_contents, | |
| 399 const GURL& frame_url, | |
| 400 const base::Callback<void(bool)>& callback) {} | |
| 401 #endif | 394 #endif |
| 402 | 395 |
| 403 // Invoked when the preferred size of the contents has been changed. | 396 // Invoked when the preferred size of the contents has been changed. |
| 404 virtual void UpdatePreferredSize(WebContents* web_contents, | 397 virtual void UpdatePreferredSize(WebContents* web_contents, |
| 405 const gfx::Size& pref_size) {} | 398 const gfx::Size& pref_size) {} |
| 406 | 399 |
| 407 // Invoked when the contents auto-resized and the container should match it. | 400 // Invoked when the contents auto-resized and the container should match it. |
| 408 virtual void ResizeDueToAutoResize(WebContents* web_contents, | 401 virtual void ResizeDueToAutoResize(WebContents* web_contents, |
| 409 const gfx::Size& new_size) {} | 402 const gfx::Size& new_size) {} |
| 410 | 403 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 // Called when |this| is no longer the WebContentsDelegate for |source|. | 472 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 480 void Detach(WebContents* source); | 473 void Detach(WebContents* source); |
| 481 | 474 |
| 482 // The WebContents that this is currently a delegate for. | 475 // The WebContents that this is currently a delegate for. |
| 483 std::set<WebContents*> attached_contents_; | 476 std::set<WebContents*> attached_contents_; |
| 484 }; | 477 }; |
| 485 | 478 |
| 486 } // namespace content | 479 } // namespace content |
| 487 | 480 |
| 488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 481 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |