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

Unified Diff: chrome/browser/extensions/window_controller_list.h

Issue 1099553002: extensions: windows: list all windows from the current profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 4 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 | « chrome/browser/extensions/window_controller.cc ('k') | chrome/browser/extensions/window_controller_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/window_controller_list.h
diff --git a/chrome/browser/extensions/window_controller_list.h b/chrome/browser/extensions/window_controller_list.h
index c280e07336b97f17cc4f34a7c5c37ff972b8f76b..e5930143e68db5dbb2268ed1fbca6ba414e27649 100644
--- a/chrome/browser/extensions/window_controller_list.h
+++ b/chrome/browser/extensions/window_controller_list.h
@@ -36,16 +36,34 @@ class WindowControllerList {
// Returns a window matching |id|.
WindowController* FindWindowById(int id) const;
+ // Returns a window matching |id| using |filter|.
+ WindowController* FindWindowByIdWithFilter(
+ int id,
+ WindowController::TypeFilter filter) const;
+
// Returns a window matching the context the function was invoked in.
WindowController* FindWindowForFunctionById(
const UIThreadExtensionFunction* function,
int id) const;
+ // Returns a window matching the context the function was invoked in
+ // using |filter|.
+ WindowController* FindWindowForFunctionByIdWithFilter(
+ const UIThreadExtensionFunction* function,
+ int id,
+ WindowController::TypeFilter filter) const;
+
// Returns the focused or last added window matching the context the function
// was invoked in.
WindowController* CurrentWindowForFunction(
const UIThreadExtensionFunction* function) const;
+ // Returns the focused or last added window matching the context the function
+ // was invoked in using |filter|.
+ WindowController* CurrentWindowForFunctionWithFilter(
+ const UIThreadExtensionFunction* function,
+ WindowController::TypeFilter filter) const;
+
const ControllerList& windows() const { return windows_; }
static WindowControllerList* GetInstance();
« no previous file with comments | « chrome/browser/extensions/window_controller.cc ('k') | chrome/browser/extensions/window_controller_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698