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

Side by Side Diff: extensions/browser/app_window/app_delegate.h

Issue 875273003: Hidden windows should not keep Chrome alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const Extension* extension) = 0; 71 const Extension* extension) = 0;
72 virtual int PreferredIconSize() = 0; 72 virtual int PreferredIconSize() = 0;
73 73
74 // Web contents modal dialog support. 74 // Web contents modal dialog support.
75 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 75 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
76 bool blocked) = 0; 76 bool blocked) = 0;
77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; 77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0;
78 78
79 // |callback| will be called when the process is about to terminate. 79 // |callback| will be called when the process is about to terminate.
80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; 80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0;
81
82 // Called when the app is hidden or shown.
83 virtual void OnHide() = 0;
84 virtual void OnShow() = 0;
81 }; 85 };
82 86
83 } // namespace extensions 87 } // namespace extensions
84 88
85 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ 89 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698