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

Side by Side Diff: content/browser/android/content_view_core_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: Rebase 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
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Methods called from native code 263 // Methods called from native code
264 // -------------------------------------------------------------------------- 264 // --------------------------------------------------------------------------
265 265
266 gfx::Size GetPhysicalBackingSize() const; 266 gfx::Size GetPhysicalBackingSize() const;
267 gfx::Size GetViewportSizeDip() const; 267 gfx::Size GetViewportSizeDip() const;
268 float GetTopControlsLayoutHeightDip() const; 268 float GetTopControlsLayoutHeightDip() const;
269 269
270 void AttachLayer(scoped_refptr<cc::Layer> layer); 270 void AttachLayer(scoped_refptr<cc::Layer> layer);
271 void RemoveLayer(scoped_refptr<cc::Layer> layer); 271 void RemoveLayer(scoped_refptr<cc::Layer> layer);
272 272
273 void SelectBetweenCoordinates(const gfx::PointF& start, 273 void MoveRangeSelectionExtent(const gfx::PointF& extent);
274 const gfx::PointF& end); 274
275 void SelectBetweenCoordinates(const gfx::PointF& base,
276 const gfx::PointF& extent);
275 277
276 private: 278 private:
277 class ContentViewUserData; 279 class ContentViewUserData;
278 280
279 friend class ContentViewUserData; 281 friend class ContentViewUserData;
280 virtual ~ContentViewCoreImpl(); 282 virtual ~ContentViewCoreImpl();
281 283
282 // WebContentsObserver implementation. 284 // WebContentsObserver implementation.
283 virtual void RenderViewReady() override; 285 virtual void RenderViewReady() override;
284 virtual void RenderViewHostChanged(RenderViewHost* old_host, 286 virtual void RenderViewHostChanged(RenderViewHost* old_host,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 java_bridge_dispatcher_host_; 342 java_bridge_dispatcher_host_;
341 343
342 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 344 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
343 }; 345 };
344 346
345 bool RegisterContentViewCore(JNIEnv* env); 347 bool RegisterContentViewCore(JNIEnv* env);
346 348
347 } // namespace content 349 } // namespace content
348 350
349 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 351 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698