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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 2408623002: Views: Extract text selection code from Textfield. (Closed)
Patch Set: Changes to PasteSelectionClipboard Created 4 years, 2 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/gfx/render_text.h » ('j') | ui/views/controls/textfield/textfield.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 6788f3ab8b250b641ce1aaa2f69874c47ffe05b3..13fd6d1cc32d4564adfffded6198d714ed064438 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -673,7 +673,7 @@ bool OmniboxViewViews::OnMouseDragged(const ui::MouseEvent& event) {
bool handled = views::Textfield::OnMouseDragged(event);
if (HasSelection() ||
- ExceededDragThreshold(event.location() - last_click_location())) {
+ ExceededDragThreshold(event.location() - GetLastClickLocation())) {
select_all_on_mouse_release_ = false;
}
« no previous file with comments | « no previous file | ui/gfx/render_text.h » ('j') | ui/views/controls/textfield/textfield.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698