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

Unified Diff: chrome/browser/ui/views/web_intents_native_services.cc

Issue 11071005: Add native file picker impl using SelectFileDialog. (Closed) Base URL: http://git.chromium.org/chromium/src.git@filePicker
Patch Set: Don't use "DeleteService" as a method name since Windows munges it at compile time. Created 8 years, 2 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/ui/intents/web_intent_picker_controller.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/web_intents_native_services.cc
diff --git a/chrome/browser/ui/views/web_intents_native_services.cc b/chrome/browser/ui/views/web_intents_native_services.cc
deleted file mode 100644
index 3d5a932597df2dbbdfdd08743039ec213454efd8..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/web_intents_native_services.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 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 "base/logging.h"
-#include "base/string16.h"
-#include "chrome/browser/intents/intent_service_host.h"
-#include "chrome/browser/intents/native_services.h"
-#include "chrome/browser/intents/web_intents_util.h"
-#include "content/public/browser/web_intents_dispatcher.h"
-#include "googleurl/src/gurl.h"
-#include "grit/generated_resources.h"
-#include "ui/base/l10n/l10n_util.h"
-#include "webkit/glue/web_intent_service_data.h"
-
-namespace web_intents {
-namespace {
-// FilePicker service allowing a native file picker to handle
-// pick+*/* intents.
-class ViewsFilePickerService : public IntentServiceHost {
- public:
- ViewsFilePickerService();
- virtual void HandleIntent(content::WebIntentsDispatcher* dispatcher) OVERRIDE;
-
- private:
- virtual ~ViewsFilePickerService();
-
- DISALLOW_COPY_AND_ASSIGN(ViewsFilePickerService);
-};
-
-} // namespace
-
-ViewsFilePickerService::ViewsFilePickerService() {}
-
-void ViewsFilePickerService::HandleIntent(
- content::WebIntentsDispatcher* dispatcher) {
- dispatcher->SendReplyMessage(
- webkit_glue::WEB_INTENT_REPLY_FAILURE, string16());
- delete this;
-}
-
-ViewsFilePickerService::~ViewsFilePickerService() {}
-
-// static
-IntentServiceHost* FilePickerFactory::CreateServiceInstance(
- const webkit_glue::WebIntentData& intent) {
- return new ViewsFilePickerService();
-}
-
-// Returns the action-specific string for |action|.
-string16 FilePickerFactory::GetServiceTitle() {
- return l10n_util::GetStringUTF16(IDS_WEB_INTENTS_FILE_PICKER_SERVICE_TITLE);
-}
-
-} // web_intents namespace
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698