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

Unified Diff: athena/content/chrome/dialogs.cc

Issue 544953003: Supprot V2 app: step1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: athena/content/chrome/dialogs.cc
diff --git a/athena/content/chrome/dialogs.cc b/athena/content/chrome/dialogs.cc
new file mode 100644
index 0000000000000000000000000000000000000000..04230605cc4f6fbd3c59d5e0363020f1b307045b
--- /dev/null
+++ b/athena/content/chrome/dialogs.cc
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "athena/content/public/dialogs.h"
+
+#include "chrome/browser/file_select_helper.h"
+#include "chrome/browser/ui/browser_dialogs.h"
+
+namespace athena {
+
+content::ColorChooser* OpenColorChooser(
+ content::WebContents* web_contents,
+ SkColor initial_color,
+ const std::vector<content::ColorSuggestion>& suggestions) {
+ return chrome::ShowColorChooser(web_contents, initial_color);
+}
+
+void OpenFileChooser(content::WebContents* web_contents,
+ const content::FileChooserParams& params) {
+ return FileSelectHelper::RunFileChooser(web_contents, params);
+}
+
+} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698