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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 // Changes the IsLoading state and notifies the delegate as needed. | 656 // Changes the IsLoading state and notifies the delegate as needed. |
657 // |details| is used to provide details on the load that just finished | 657 // |details| is used to provide details on the load that just finished |
658 // (but can be null if not applicable). | 658 // (but can be null if not applicable). |
659 virtual void SetIsLoading(RenderViewHost* render_view_host, | 659 virtual void SetIsLoading(RenderViewHost* render_view_host, |
660 bool is_loading, | 660 bool is_loading, |
661 bool to_different_document, | 661 bool to_different_document, |
662 LoadNotificationDetails* details) override; | 662 LoadNotificationDetails* details) override; |
663 | 663 |
664 typedef base::Callback<void(WebContents*)> CreatedCallback; | 664 typedef base::Callback<void(WebContents*)> CreatedCallback; |
665 | 665 |
| 666 // Requests the renderer to move the selection extent to a new position. |
| 667 void MoveSelectionExtent(const gfx::Point& position); |
| 668 |
666 // Requests the renderer to select the region between two points in the | 669 // Requests the renderer to select the region between two points in the |
667 // currently focused frame. | 670 // currently focused frame. |
668 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 671 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
669 | 672 |
670 // Notifies the main frame that it can continue navigation (if it was deferred | 673 // Notifies the main frame that it can continue navigation (if it was deferred |
671 // immediately at first response). | 674 // immediately at first response). |
672 void ResumeResponseDeferredAtStart(); | 675 void ResumeResponseDeferredAtStart(); |
673 | 676 |
674 // Forces overscroll to be disabled (used by touch emulation). | 677 // Forces overscroll to be disabled (used by touch emulation). |
675 void SetForceDisableOverscrollContent(bool force_disable); | 678 void SetForceDisableOverscrollContent(bool force_disable); |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1246 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
1244 | 1247 |
1245 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1248 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1246 | 1249 |
1247 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1250 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1248 }; | 1251 }; |
1249 | 1252 |
1250 } // namespace content | 1253 } // namespace content |
1251 | 1254 |
1252 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1255 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |