| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "ui/gfx/image/image.h" | 13 #include "ui/gfx/image/image.h" |
| 14 | 14 |
| 15 class WebIntentPickerModelObserver; | 15 class WebIntentPickerModelObserver; |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class Image; | 18 class Image; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Model for the WebIntentPicker. | 21 // Model for the WebIntentPicker. |
| 22 class WebIntentPickerModel { | 22 class WebIntentPickerModel { |
| 23 public: | 23 public: |
| 24 // The intent service disposition. | 24 // The intent service disposition. |
| 25 // TODO(gbillock): use the webkit_glue::WebIntentServiceData::Disposition |
| 25 enum Disposition { | 26 enum Disposition { |
| 26 DISPOSITION_WINDOW, // Display the intent service in a new window. | 27 DISPOSITION_WINDOW, // Display the intent service in a new window. |
| 27 DISPOSITION_INLINE, // Display the intent service in the picker. | 28 DISPOSITION_INLINE, // Display the intent service in the picker. |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 // An intent service to display in the picker. | 31 // An intent service to display in the picker. |
| 31 struct InstalledService { | 32 struct InstalledService { |
| 32 InstalledService(const string16& title, | 33 InstalledService(const string16& title, |
| 33 const GURL& url, | 34 const GURL& url, |
| 34 Disposition disposition); | 35 Disposition disposition); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // A cached copy of the action that instantiated the picker. | 161 // A cached copy of the action that instantiated the picker. |
| 161 string16 action_; | 162 string16 action_; |
| 162 | 163 |
| 163 // A cached copy of the mimetype that instantiated the picker. | 164 // A cached copy of the mimetype that instantiated the picker. |
| 164 string16 mimetype_; | 165 string16 mimetype_; |
| 165 | 166 |
| 166 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 167 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 170 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
| OLD | NEW |