| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // Sets the passed interstitial as the currently showing interstitial. | 652 // Sets the passed interstitial as the currently showing interstitial. |
| 653 // No interstitial page should already be attached. | 653 // No interstitial page should already be attached. |
| 654 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; | 654 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page) override; |
| 655 | 655 |
| 656 // Unsets the currently showing interstitial. | 656 // Unsets the currently showing interstitial. |
| 657 void DetachInterstitialPage() override; | 657 void DetachInterstitialPage() override; |
| 658 | 658 |
| 659 // Changes the IsLoading state and notifies the delegate as needed. | 659 // Changes the IsLoading state and notifies the delegate as needed. |
| 660 // |details| is used to provide details on the load that just finished | 660 // |details| is used to provide details on the load that just finished |
| 661 // (but can be null if not applicable). | 661 // (but can be null if not applicable). |
| 662 void SetIsLoading(RenderViewHost* render_view_host, | 662 void SetIsLoading(bool is_loading, |
| 663 bool is_loading, | |
| 664 bool to_different_document, | 663 bool to_different_document, |
| 665 LoadNotificationDetails* details) override; | 664 LoadNotificationDetails* details) override; |
| 666 | 665 |
| 667 typedef base::Callback<void(WebContents*)> CreatedCallback; | 666 typedef base::Callback<void(WebContents*)> CreatedCallback; |
| 668 | 667 |
| 669 // Requests the renderer to move the selection extent to a new position. | 668 // Requests the renderer to move the selection extent to a new position. |
| 670 void MoveRangeSelectionExtent(const gfx::Point& extent); | 669 void MoveRangeSelectionExtent(const gfx::Point& extent); |
| 671 | 670 |
| 672 // Requests the renderer to select the region between two points in the | 671 // Requests the renderer to select the region between two points in the |
| 673 // currently focused frame. | 672 // currently focused frame. |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 // Adds/removes a callback called on creation of each new WebContents. | 1281 // Adds/removes a callback called on creation of each new WebContents. |
| 1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1282 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1283 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1285 | 1284 |
| 1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1285 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1287 }; | 1286 }; |
| 1288 | 1287 |
| 1289 } // namespace content | 1288 } // namespace content |
| 1290 | 1289 |
| 1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1290 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |