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

Side by Side Diff: chrome/browser/ui/intents/web_intent_constrained_dialog_factory.h

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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_CONSTRAINED_DIALOG_FACTORY_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_CONSTRAINED_DIALOG_FACTORY_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/intents/web_intent_picker_factory.h"
12
13 class TabContents;
14 class WebIntentPickerDelegate;
15
16 // A factory for creating a constrained dialog as the intent picker UI for a
17 // given TabContents.
18 class WebIntentConstrainedDialogFactory : public WebIntentPickerFactory {
19 public:
20 WebIntentConstrainedDialogFactory();
21 virtual ~WebIntentConstrainedDialogFactory();
22
23 // WebIntentPickerFactory implementation.
24 virtual WebIntentPicker* Create(
25 TabContents* tab_contents,
26 WebIntentPickerDelegate* delegate) OVERRIDE;
27 virtual void ClosePicker(WebIntentPicker* picker) OVERRIDE;
28
29 private:
30 // Closes the dialog and destroys it.
31 void CloseDialog();
32
33 // A weak pointer to the currently active picker, or NULL if there is no
34 // active picker.
35 WebIntentPicker* picker_;
36
37 DISALLOW_COPY_AND_ASSIGN(WebIntentConstrainedDialogFactory);
38 };
39
40 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_CONSTRAINED_DIALOG_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/web_intent_picker_gtk.cc ('k') | chrome/browser/ui/intents/web_intent_constrained_dialog_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698