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

Unified Diff: athena/content/app_activity_registry.h

Issue 536013002: Decoupling visibility states from webcontent, adding visibility management in ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Created 6 years, 3 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 | « athena/content/app_activity_proxy.cc ('k') | athena/content/app_activity_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/app_activity_registry.h
diff --git a/athena/content/app_activity_registry.h b/athena/content/app_activity_registry.h
index 14ef7de3945ba25b7e9ec445b63f1b786f07307b..c2dbd65a48298dc46bdf1106eae9a573e2f63782 100644
--- a/athena/content/app_activity_registry.h
+++ b/athena/content/app_activity_registry.h
@@ -57,9 +57,9 @@ class ATHENA_EXPORT AppActivityRegistry {
content::BrowserContext* browser_context() const { return browser_context_; }
const std::string& app_id() const { return app_id_; }
- AppActivityProxy* unloaded_activity_proxy_for_test() {
- return unloaded_activity_proxy_;
- }
+ // Returns the proxy - if there is one. This will get used by a newly created
+ // activity to position itself in its place before it get destroyed.
+ Activity* unloaded_activity_proxy() { return unloaded_activity_proxy_; }
protected:
friend AppActivityProxy;
@@ -74,8 +74,8 @@ class ATHENA_EXPORT AppActivityRegistry {
void RestartApplication(AppActivityProxy* proxy);
private:
- // Move the window before the most recently used application window.
- void MoveBeforeMruApplicationWindow(aura::Window* window);
+ // Gets most recently used AppAcitivty that belongs to the same application.
+ AppActivity* GetMruActivity();
// A list of all activities associated with this application.
std::vector<AppActivity*> activity_list_;
« 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