Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address issues and add tests Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 MoveRangeSelectionExtent(const gfx::Point& extent);
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& base, const gfx::Point& extent);
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);
676 679
677 AudioStreamMonitor* audio_stream_monitor() { 680 AudioStreamMonitor* audio_stream_monitor() {
678 return &audio_stream_monitor_; 681 return &audio_stream_monitor_;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698