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

Unified Diff: chrome/browser/ui/intents/web_intent_constrained_dialog_factory.cc

Issue 7778032: Revert 98888 - Web Intent Picker UI (implemented as a constrained dialog, linux only) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
Index: chrome/browser/ui/intents/web_intent_constrained_dialog_factory.cc
===================================================================
--- chrome/browser/ui/intents/web_intent_constrained_dialog_factory.cc (revision 98890)
+++ chrome/browser/ui/intents/web_intent_constrained_dialog_factory.cc (working copy)
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 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 "chrome/browser/ui/intents/web_intent_constrained_dialog_factory.h"
-
-#include "chrome/browser/ui/intents/web_intent_picker.h"
-#include "content/browser/tab_contents/constrained_window.h"
-#include "content/browser/tab_contents/tab_contents.h"
-
-WebIntentConstrainedDialogFactory::WebIntentConstrainedDialogFactory()
- : picker_(NULL) {
-}
-
-WebIntentConstrainedDialogFactory::~WebIntentConstrainedDialogFactory() {
- CloseDialog();
-}
-
-WebIntentPicker* WebIntentConstrainedDialogFactory::Create(
- TabContents* tab_contents,
- WebIntentPickerDelegate* delegate) {
- // Only allow one picker per factory.
- DCHECK(picker_ == NULL);
-
- picker_ = WebIntentPicker::Create(tab_contents, delegate);
-
- // TODO(binji) Remove this check when there are implementations of the picker
- // for windows and mac.
- if (picker_ == NULL)
- return NULL;
-
- picker_->Show();
-
- return picker_;
-}
-
-void WebIntentConstrainedDialogFactory::ClosePicker(WebIntentPicker* picker) {
- DCHECK(picker == picker_);
- CloseDialog();
-}
-
-void WebIntentConstrainedDialogFactory::CloseDialog() {
- if (picker_) {
- picker_->Close();
- picker_ = NULL;
- }
-}
« no previous file with comments | « chrome/browser/ui/intents/web_intent_constrained_dialog_factory.h ('k') | chrome/browser/ui/intents/web_intent_picker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698