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

Unified Diff: content/browser/web_contents/touch_editable_impl_aura.cc

Issue 138023004: Use local coordinates in TouchEditable interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added TODO for switching to screen coordinates Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/touch/touch_editing_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/touch_editable_impl_aura.cc
diff --git a/content/browser/web_contents/touch_editable_impl_aura.cc b/content/browser/web_contents/touch_editable_impl_aura.cc
index 8bf497d642fe8502f37ec02928158b1ad91ce41a..a9569df9296a890b3a5adf0d2e965d5740698d0c 100644
--- a/content/browser/web_contents/touch_editable_impl_aura.cc
+++ b/content/browser/web_contents/touch_editable_impl_aura.cc
@@ -248,7 +248,8 @@ void TouchEditableImplAura::GetSelectionEndPoints(gfx::Rect* p1,
}
gfx::Rect TouchEditableImplAura::GetBounds() {
- return rwhva_ ? rwhva_->GetNativeView()->bounds() : gfx::Rect();
+ return rwhva_ ? gfx::Rect(rwhva_->GetNativeView()->bounds().size()) :
+ gfx::Rect();
}
gfx::NativeView TouchEditableImplAura::GetNativeView() const {
« no previous file with comments | « no previous file | ui/base/touch/touch_editing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698