| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 int active_match_ordinal, | 397 int active_match_ordinal, |
| 398 bool final_update) {} | 398 bool final_update) {} |
| 399 | 399 |
| 400 #if defined(OS_ANDROID) | 400 #if defined(OS_ANDROID) |
| 401 // Provides the rects of the current find-in-page matches. | 401 // Provides the rects of the current find-in-page matches. |
| 402 // Sent as a reply to RequestFindMatchRects. | 402 // Sent as a reply to RequestFindMatchRects. |
| 403 virtual void FindMatchRectsReply(WebContents* web_contents, | 403 virtual void FindMatchRectsReply(WebContents* web_contents, |
| 404 int version, | 404 int version, |
| 405 const std::vector<gfx::RectF>& rects, | 405 const std::vector<gfx::RectF>& rects, |
| 406 const gfx::RectF& active_rect) {} | 406 const gfx::RectF& active_rect) {} |
| 407 |
| 408 // Requests the tab to show media controls to manipulate the active media |
| 409 // session. |
| 410 virtual void ShowMediaControls(WebContents* web_contents) {} |
| 411 |
| 412 // Requests the tab to hide media controls as the media session became |
| 413 // inactive. |
| 414 virtual void HideMediaControls(WebContents* web_contents) {} |
| 407 #endif | 415 #endif |
| 408 | 416 |
| 409 // Invoked when the preferred size of the contents has been changed. | 417 // Invoked when the preferred size of the contents has been changed. |
| 410 virtual void UpdatePreferredSize(WebContents* web_contents, | 418 virtual void UpdatePreferredSize(WebContents* web_contents, |
| 411 const gfx::Size& pref_size) {} | 419 const gfx::Size& pref_size) {} |
| 412 | 420 |
| 413 // Invoked when the contents auto-resized and the container should match it. | 421 // Invoked when the contents auto-resized and the container should match it. |
| 414 virtual void ResizeDueToAutoResize(WebContents* web_contents, | 422 virtual void ResizeDueToAutoResize(WebContents* web_contents, |
| 415 const gfx::Size& new_size) {} | 423 const gfx::Size& new_size) {} |
| 416 | 424 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 // Called when |this| is no longer the WebContentsDelegate for |source|. | 510 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 503 void Detach(WebContents* source); | 511 void Detach(WebContents* source); |
| 504 | 512 |
| 505 // The WebContents that this is currently a delegate for. | 513 // The WebContents that this is currently a delegate for. |
| 506 std::set<WebContents*> attached_contents_; | 514 std::set<WebContents*> attached_contents_; |
| 507 }; | 515 }; |
| 508 | 516 |
| 509 } // namespace content | 517 } // namespace content |
| 510 | 518 |
| 511 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 519 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |