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

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

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
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.h ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/shell_window_registry.cc
diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc
index 793490188307058cb3fff409f33051ad9e5a778d..d852cffd6354d22834fa87f0a6e6f64f2fd0b099 100644
--- a/chrome/browser/extensions/shell_window_registry.cc
+++ b/chrome/browser/extensions/shell_window_registry.cc
@@ -58,6 +58,17 @@ ShellWindow* ShellWindowRegistry::GetShellWindowForRenderViewHost(
return NULL;
}
+ShellWindow* ShellWindowRegistry::GetShellWindowForNativeWindow(
+ gfx::NativeWindow window) const {
+ for (ShellWindowSet::const_iterator i = shell_windows_.begin();
+ i != shell_windows_.end(); ++i) {
+ if ((*i)->GetNativeWindow() == window)
+ return *i;
+ }
+
+ return NULL;
+}
+
///////////////////////////////////////////////////////////////////////////////
// Factory boilerplate
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.h ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698