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

Unified Diff: ui/views/view_model_utils.h

Issue 598013003: Added views::ViewModelT<T>, a type-safe template version of ViewModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@appsgridview-static-casts
Patch Set: Fix browser_test compile on ChromeOS (missing include). Created 6 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 | « ui/views/view_model.cc ('k') | ui/views/view_model_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_model_utils.h
diff --git a/ui/views/view_model_utils.h b/ui/views/view_model_utils.h
index 2d7eb89e810897854772e8f1c9f70ee8063caa69..a01fecb5df5f00f41bba2a7204ec35d7bf8f18b5 100644
--- a/ui/views/view_model_utils.h
+++ b/ui/views/view_model_utils.h
@@ -11,7 +11,7 @@
namespace views {
class View;
-class ViewModel;
+class ViewModelBase;
class VIEWS_EXPORT ViewModelUtils {
public:
@@ -21,13 +21,13 @@ class VIEWS_EXPORT ViewModelUtils {
};
// Sets the bounds of each view to its ideal bounds.
- static void SetViewBoundsToIdealBounds(const ViewModel& model);
+ static void SetViewBoundsToIdealBounds(const ViewModelBase& model);
// Returns true if the Views in |model| are at their ideal bounds.
- static bool IsAtIdealBounds(const ViewModel& model);
+ static bool IsAtIdealBounds(const ViewModelBase& model);
// Returns the index to move |view| to based on a coordinate of |x| and |y|.
- static int DetermineMoveIndex(const ViewModel& model,
+ static int DetermineMoveIndex(const ViewModelBase& model,
View* view,
Alignment alignment,
int x,
« no previous file with comments | « ui/views/view_model.cc ('k') | ui/views/view_model_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698