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