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

Unified Diff: athena/activity/public/activity_view_model.h

Issue 375143002: Use Widget frame and WidgetDelegate in ActvityWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: athena/activity/public/activity_view_model.h
diff --git a/athena/activity/public/activity_view_model.h b/athena/activity/public/activity_view_model.h
index 5e6614c8cbabb61bd742c219306459f35b95a97e..8b63d2d1e8ce7dd2cbe6c3e767408f5785b53a9d 100644
--- a/athena/activity/public/activity_view_model.h
+++ b/athena/activity/public/activity_view_model.h
@@ -24,10 +24,14 @@ class ATHENA_EXPORT ActivityViewModel {
virtual void Init() = 0;
// Returns a color most representative of this activity.
- virtual SkColor GetRepresentativeColor() = 0;
+ virtual SkColor GetRepresentativeColor() const = 0;
// Returns a title for the activity.
- virtual base::string16 GetTitle() = 0;
+ virtual base::string16 GetTitle() const = 0;
+
+ // True if the activity wants to use Widget's frame, or false if the activity
+ // draws its own frame.
+ virtual bool UsesFrame() const = 0;
// Returns the contents view.
virtual views::View* GetContentsView() = 0;

Powered by Google App Engine
This is Rietveld 408576698