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

Unified Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 7715037: Web Intent Picker UI (implemented as a constrained dialog, linux only) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: linux_views/chromeos fix 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_picker.h
diff --git a/chrome/browser/ui/intents/web_intent_picker.h b/chrome/browser/ui/intents/web_intent_picker.h
new file mode 100644
index 0000000000000000000000000000000000000000..af2cb196839d3d3b5c24958f3697d4b513d89c1f
--- /dev/null
+++ b/chrome/browser/ui/intents/web_intent_picker.h
@@ -0,0 +1,44 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
+#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
+#pragma once
+
+#include <vector>
+
+class GURL;
+class SkBitmap;
+class TabContents;
+class WebIntentPickerDelegate;
+
+// Base class for the web intent picker dialog.
+class WebIntentPicker {
+ public:
+ class Delegate;
+
+ // Platform specific factory function.
+ static WebIntentPicker* Create(TabContents* tab_contents,
+ WebIntentPickerDelegate* delegate);
+
+ // Initalizes this picker with the |urls|.
+ virtual void SetServiceURLs(const std::vector<GURL>& urls) = 0;
+
+ // Sets the icon for a service at |index|.
+ virtual void SetServiceIcon(size_t index, const SkBitmap& icon) = 0;
+
+ // Sets the icon for a service at |index| to be the default favicon.
+ virtual void SetDefaultServiceIcon(size_t index) = 0;
+
+ // Shows the UI for this picker.
+ virtual void Show() = 0;
+
+ // Hides the UI for this picker, and destroys its UI.
+ virtual void Close() = 0;
+
+ protected:
+ virtual ~WebIntentPicker() {}
+};
+
+#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_

Powered by Google App Engine
This is Rietveld 408576698