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

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: 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 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Methods called from native code 267 // Methods called from native code
268 // -------------------------------------------------------------------------- 268 // --------------------------------------------------------------------------
269 269
270 gfx::Size GetPhysicalBackingSize() const; 270 gfx::Size GetPhysicalBackingSize() const;
271 gfx::Size GetViewportSizeDip() const; 271 gfx::Size GetViewportSizeDip() const;
272 float GetTopControlsLayoutHeightDip() const; 272 float GetTopControlsLayoutHeightDip() const;
273 273
274 void AttachLayer(scoped_refptr<cc::Layer> layer); 274 void AttachLayer(scoped_refptr<cc::Layer> layer);
275 void RemoveLayer(scoped_refptr<cc::Layer> layer); 275 void RemoveLayer(scoped_refptr<cc::Layer> layer);
276 276
277 void SelectBetweenCoordinates(const gfx::PointF& start, 277 void MoveRangeSelectionExtent(const gfx::PointF& extent);
278 const gfx::PointF& end); 278
279 void SelectBetweenCoordinates(const gfx::PointF& base,
280 const gfx::PointF& extent);
279 281
280 private: 282 private:
281 class ContentViewUserData; 283 class ContentViewUserData;
282 284
283 friend class ContentViewUserData; 285 friend class ContentViewUserData;
284 virtual ~ContentViewCoreImpl(); 286 virtual ~ContentViewCoreImpl();
285 287
286 // WebContentsObserver implementation. 288 // WebContentsObserver implementation.
287 virtual void RenderViewReady() override; 289 virtual void RenderViewReady() override;
288 virtual void RenderViewHostChanged(RenderViewHost* old_host, 290 virtual void RenderViewHostChanged(RenderViewHost* old_host,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 java_bridge_dispatcher_host_; 346 java_bridge_dispatcher_host_;
345 347
346 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 348 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
347 }; 349 };
348 350
349 bool RegisterContentViewCore(JNIEnv* env); 351 bool RegisterContentViewCore(JNIEnv* env);
350 352
351 } // namespace content 353 } // namespace content
352 354
353 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 355 #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') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698