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

Unified Diff: ui/views/view_model.h

Issue 10267023: Gets tab dragging to work in touch mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 8 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 | « chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc ('k') | ui/views/view_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_model.h
diff --git a/ui/views/view_model.h b/ui/views/view_model.h
index 2493878b1df8b06114f957e81c4e6a81e3644e8c..d94e7289d4c903cce62ab7f58d6138bad9f723c1 100644
--- a/ui/views/view_model.h
+++ b/ui/views/view_model.h
@@ -39,6 +39,12 @@ class VIEWS_EXPORT ViewModel {
// of the model *after* the view at |index| is removed.
void Move(int index, int target_index);
+ // Variant of Move() that leaves the bounds as is. That is, after invoking
+ // this the bounds of the view at |target_index| (and all other indices) are
+ // exactly the same as the bounds of the view at |target_index| before
+ // invoking this.
+ void MoveViewOnly(int index, int target_index);
+
// Returns the number of views.
int view_size() const { return static_cast<int>(entries_.size()); }
« no previous file with comments | « chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc ('k') | ui/views/view_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698