| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 int active_match_ordinal, | 355 int active_match_ordinal, |
| 356 bool final_update) {} | 356 bool final_update) {} |
| 357 | 357 |
| 358 // Notification that a plugin has crashed. | 358 // Notification that a plugin has crashed. |
| 359 virtual void CrashedPlugin(WebContents* tab, const FilePath& plugin_path) {} | 359 virtual void CrashedPlugin(WebContents* tab, const FilePath& plugin_path) {} |
| 360 | 360 |
| 361 // Invoked when the preferred size of the contents has been changed. | 361 // Invoked when the preferred size of the contents has been changed. |
| 362 virtual void UpdatePreferredSize(WebContents* tab, | 362 virtual void UpdatePreferredSize(WebContents* tab, |
| 363 const gfx::Size& pref_size) {} | 363 const gfx::Size& pref_size) {} |
| 364 | 364 |
| 365 // Invoked when the contents auto-resized and the container should match it. |
| 366 virtual void ResizeDueToAutoResize(WebContents* tab, |
| 367 const gfx::Size& new_size) {} |
| 368 |
| 365 // Notification message from HTML UI. | 369 // Notification message from HTML UI. |
| 366 virtual void WebUISend(WebContents* tab, | 370 virtual void WebUISend(WebContents* tab, |
| 367 const GURL& source_url, | 371 const GURL& source_url, |
| 368 const std::string& name, | 372 const std::string& name, |
| 369 const base::ListValue& args) {} | 373 const base::ListValue& args) {} |
| 370 | 374 |
| 371 // Requests to lock the mouse. Once the request is approved or rejected, | 375 // Requests to lock the mouse. Once the request is approved or rejected, |
| 372 // GotResponseToLockMouseRequest() will be called on the requesting tab | 376 // GotResponseToLockMouseRequest() will be called on the requesting tab |
| 373 // contents. | 377 // contents. |
| 374 virtual void RequestToLockMouse(WebContents* tab) {} | 378 virtual void RequestToLockMouse(WebContents* tab) {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 388 // Called when |this| is no longer the WebContentsDelegate for |source|. | 392 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 389 void Detach(WebContents* source); | 393 void Detach(WebContents* source); |
| 390 | 394 |
| 391 // The WebContents that this is currently a delegate for. | 395 // The WebContents that this is currently a delegate for. |
| 392 std::set<WebContents*> attached_contents_; | 396 std::set<WebContents*> attached_contents_; |
| 393 }; | 397 }; |
| 394 | 398 |
| 395 } // namespace content | 399 } // namespace content |
| 396 | 400 |
| 397 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 401 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |