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

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

Issue 10584026: Allow ChromeOS file selection dialog to be shown from shell windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years, 6 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: chrome/browser/extensions/shell_window_registry.h
diff --git a/chrome/browser/extensions/shell_window_registry.h b/chrome/browser/extensions/shell_window_registry.h
index 9dd705192901f1f3d04ea2a0c933ea96f7dbfff1..7eeb7e0e493294f3d2f70c5c9c7c14e72db5d6b5 100644
--- a/chrome/browser/extensions/shell_window_registry.h
+++ b/chrome/browser/extensions/shell_window_registry.h
@@ -13,6 +13,7 @@
#include "base/observer_list.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
+#include "ui/gfx/native_widget_types.h"
class Profile;
class ShellWindow;
@@ -61,8 +62,10 @@ class ShellWindowRegistry : public ProfileKeyedService {
ShellWindowSet GetShellWindowsForApp(const std::string app_id) const;
const ShellWindowSet& shell_windows() const { return shell_windows_; }
+ // Helper functions to find shell windows with particular attributes.
ShellWindow* GetShellWindowForRenderViewHost(
content::RenderViewHost* render_view_host) const;
+ ShellWindow* GetShellWindowForNativeWindow(gfx::NativeWindow window) const;
private:
class Factory : public ProfileKeyedServiceFactory {
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/shell_window_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698