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

Side by Side Diff: athena/content/app_activity_registry.h

Issue 653563004: NULL -> nullptr under athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/content/app_activity_registry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_ 5 #ifndef ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_
6 #define ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_ 6 #define ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "athena/activity/public/activity_view_model.h" 10 #include "athena/activity/public/activity_view_model.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // Unregister a previously attached |AppActivity|. 39 // Unregister a previously attached |AppActivity|.
40 // Note that detaching the last |AppActivity| will delete this object - unless 40 // Note that detaching the last |AppActivity| will delete this object - unless
41 // the resource manager was trying to unload the application. 41 // the resource manager was trying to unload the application.
42 // Note furthermore that Detach can be called without ever being registered. 42 // Note furthermore that Detach can be called without ever being registered.
43 void UnregisterAppActivity(AppActivity* app_activity); 43 void UnregisterAppActivity(AppActivity* app_activity);
44 44
45 // Returns the number of activities/windows with this application. 45 // Returns the number of activities/windows with this application.
46 int NumberOfActivities() const { return activity_list_.size(); } 46 int NumberOfActivities() const { return activity_list_.size(); }
47 47
48 // Returns the |AppActivity| at |index|. It will return NULL if an invalid 48 // Returns the |AppActivity| at |index|. It will return nullptr if an invalid
49 // index was specified. 49 // index was specified.
50 AppActivity* GetAppActivityAt(size_t index); 50 AppActivity* GetAppActivityAt(size_t index);
51 51
52 // Unload all application associated activities to save resources. 52 // Unload all application associated activities to save resources.
53 void Unload(); 53 void Unload();
54 54
55 // Returns true if the application is in the unloaded state. 55 // Returns true if the application is in the unloaded state.
56 bool IsUnloaded() { return unloaded_activity_proxy_ != NULL; } 56 bool IsUnloaded() { return unloaded_activity_proxy_ != nullptr; }
57 57
58 content::BrowserContext* browser_context() const { return browser_context_; } 58 content::BrowserContext* browser_context() const { return browser_context_; }
59 const std::string& app_id() const { return app_id_; } 59 const std::string& app_id() const { return app_id_; }
60 60
61 // Returns the proxy - if there is one. This will get used by a newly created 61 // Returns the proxy - if there is one. This will get used by a newly created
62 // activity to position itself in its place before it get destroyed. 62 // activity to position itself in its place before it get destroyed.
63 Activity* unloaded_activity_proxy() { return unloaded_activity_proxy_; } 63 Activity* unloaded_activity_proxy() { return unloaded_activity_proxy_; }
64 64
65 protected: 65 protected:
66 friend AppActivityProxy; 66 friend AppActivityProxy;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 SkColor color_; 99 SkColor color_;
100 base::string16 title_; 100 base::string16 title_;
101 gfx::ImageSkia image_; 101 gfx::ImageSkia image_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(AppActivityRegistry); 103 DISALLOW_COPY_AND_ASSIGN(AppActivityRegistry);
104 }; 104 };
105 105
106 } // namespace athena 106 } // namespace athena
107 107
108 #endif // ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_ 108 #endif // ATHENA_CONTENT_APP_ACTIVITY_REGISTRY_H_
OLDNEW
« no previous file with comments | « athena/content/app_activity_proxy.cc ('k') | athena/content/app_activity_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698