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

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

Issue 2408623002: Views: Extract text selection code from Textfield. (Closed)
Patch Set: Check for |handles_selection_clipboard_| 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/selection_controller.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 98ad3e568cb4cac06b580895a55fe1527c25a65f..2c03497c49d69dff61c34e4100f90739c6b94d8a 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -672,7 +672,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/selection_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698