| 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // Changes the IsLoading state and notifies the delegate as needed. | 631 // Changes the IsLoading state and notifies the delegate as needed. |
| 632 // |details| is used to provide details on the load that just finished | 632 // |details| is used to provide details on the load that just finished |
| 633 // (but can be null if not applicable). | 633 // (but can be null if not applicable). |
| 634 void SetIsLoading(RenderViewHost* render_view_host, | 634 void SetIsLoading(RenderViewHost* render_view_host, |
| 635 bool is_loading, | 635 bool is_loading, |
| 636 bool to_different_document, | 636 bool to_different_document, |
| 637 LoadNotificationDetails* details) override; | 637 LoadNotificationDetails* details) override; |
| 638 | 638 |
| 639 typedef base::Callback<void(WebContents*)> CreatedCallback; | 639 typedef base::Callback<void(WebContents*)> CreatedCallback; |
| 640 | 640 |
| 641 // Requests the renderer to move the selection extent to a new position. |
| 642 void MoveRangeSelectionExtent(const gfx::Point& extent); |
| 643 |
| 641 // Requests the renderer to select the region between two points in the | 644 // Requests the renderer to select the region between two points in the |
| 642 // currently focused frame. | 645 // currently focused frame. |
| 643 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 646 void SelectRange(const gfx::Point& base, const gfx::Point& extent); |
| 644 | 647 |
| 645 // Notifies the main frame that it can continue navigation (if it was deferred | 648 // Notifies the main frame that it can continue navigation (if it was deferred |
| 646 // immediately at first response). | 649 // immediately at first response). |
| 647 void ResumeResponseDeferredAtStart(); | 650 void ResumeResponseDeferredAtStart(); |
| 648 | 651 |
| 649 // Forces overscroll to be disabled (used by touch emulation). | 652 // Forces overscroll to be disabled (used by touch emulation). |
| 650 void SetForceDisableOverscrollContent(bool force_disable); | 653 void SetForceDisableOverscrollContent(bool force_disable); |
| 651 | 654 |
| 652 AudioStreamMonitor* audio_stream_monitor() { | 655 AudioStreamMonitor* audio_stream_monitor() { |
| 653 return &audio_stream_monitor_; | 656 return &audio_stream_monitor_; |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1231 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
| 1229 | 1232 |
| 1230 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1233 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1231 | 1234 |
| 1232 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1235 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1233 }; | 1236 }; |
| 1234 | 1237 |
| 1235 } // namespace content | 1238 } // namespace content |
| 1236 | 1239 |
| 1237 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1240 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |