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

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

Issue 9148032: [Web Intents] Refactor picker to use WebIntentPickerModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: groby's fix Created 8 years, 10 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_PICKER_FACTORY_IMPL_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_IMPL_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 the web intent picker UI.
17 class WebIntentPickerFactoryImpl : public WebIntentPickerFactory {
18 public:
19 WebIntentPickerFactoryImpl();
20 virtual ~WebIntentPickerFactoryImpl();
21
22 // WebIntentPickerFactory implementation.
23 virtual WebIntentPicker* Create(
24 Browser* browser,
25 TabContentsWrapper* wrapper,
26 WebIntentPickerDelegate* delegate) OVERRIDE;
27 virtual void ClosePicker(WebIntentPicker* picker) OVERRIDE;
28
29 private:
30 // Close the picker and destroys it.
31 void Close();
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(WebIntentPickerFactoryImpl);
38 };
39
40 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_factory.h ('k') | chrome/browser/ui/intents/web_intent_picker_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698