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

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

Issue 10855066: intents: Remove the disposition enum in web intents model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock type. Created 8 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_model.h
diff --git a/chrome/browser/ui/intents/web_intent_picker_model.h b/chrome/browser/ui/intents/web_intent_picker_model.h
index 6ac103ccdff60a4475bfef6503ef62fd2c45ef05..71e1a9e815ff3b7bf035aeb5f66418bbbe79850f 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -11,24 +11,19 @@
#include "base/string16.h"
#include "googleurl/src/gurl.h"
#include "ui/gfx/image/image.h"
+#include "webkit/glue/web_intent_service_data.h"
class WebIntentPickerModelObserver;
// Model for the WebIntentPicker.
class WebIntentPickerModel {
public:
- // The intent service disposition.
- // TODO(gbillock): use the webkit_glue::WebIntentServiceData::Disposition
- enum Disposition {
- DISPOSITION_WINDOW, // Display the intent service in a new window.
- DISPOSITION_INLINE, // Display the intent service in the picker.
- };
-
// An intent service to display in the picker.
struct InstalledService {
- InstalledService(const string16& title,
- const GURL& url,
- Disposition disposition);
+ InstalledService(
+ const string16& title,
+ const GURL& url,
+ webkit_glue::WebIntentServiceData::Disposition disposition);
~InstalledService();
// The title of this service.
@@ -41,7 +36,7 @@ class WebIntentPickerModel {
gfx::Image favicon;
// The disposition to use when displaying this service.
- Disposition disposition;
+ webkit_glue::WebIntentServiceData::Disposition disposition;
};
// A suggested extension to display in the picker.
@@ -84,9 +79,10 @@ class WebIntentPickerModel {
// Add a new installed service with |title|, |url| and |disposition| to the
// picker.
- void AddInstalledService(const string16& title,
- const GURL& url,
- Disposition disposition);
+ void AddInstalledService(
+ const string16& title,
+ const GURL& url,
+ webkit_glue::WebIntentServiceData::Disposition disposition);
// Remove an installed service from the picker at |index|.
void RemoveInstalledServiceAt(size_t index);
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_delegate.h ('k') | chrome/browser/ui/intents/web_intent_picker_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698