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 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 gfx::Image icon; | 67 gfx::Image icon; |
68 }; | 68 }; |
69 | 69 |
70 WebIntentPickerModel(); | 70 WebIntentPickerModel(); |
71 ~WebIntentPickerModel(); | 71 ~WebIntentPickerModel(); |
72 | 72 |
73 void set_observer(WebIntentPickerModelObserver* observer) { | 73 void set_observer(WebIntentPickerModelObserver* observer) { |
74 observer_ = observer; | 74 observer_ = observer; |
75 } | 75 } |
76 | 76 |
77 void set_action(const string16& action) { action_ = action; } | |
78 | |
79 const string16& action() { return action_; } | |
80 | |
81 void set_mimetype(const string16& mimetype) { mimetype_ = mimetype; } | |
82 | |
83 const string16& mimetype() { return mimetype_; } | |
84 | |
77 // Add a new installed service with |title|, |url| and |disposition| to the | 85 // Add a new installed service with |title|, |url| and |disposition| to the |
78 // picker. | 86 // picker. |
79 void AddInstalledService(const string16& title, | 87 void AddInstalledService(const string16& title, |
80 const GURL& url, | 88 const GURL& url, |
81 Disposition disposition); | 89 Disposition disposition); |
82 | 90 |
83 // Remove an installed service from the picker at |index|. | 91 // Remove an installed service from the picker at |index|. |
84 void RemoveInstalledServiceAt(size_t index); | 92 void RemoveInstalledServiceAt(size_t index); |
85 | 93 |
86 // Remove all installed services from the picker, and resets to not | 94 // Remove all installed services from the picker, and resets to not |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 // by this model. | 147 // by this model. |
140 std::vector<SuggestedExtension*> suggested_extensions_; | 148 std::vector<SuggestedExtension*> suggested_extensions_; |
141 | 149 |
142 // The observer to send notifications to, or NULL if none. | 150 // The observer to send notifications to, or NULL if none. |
143 WebIntentPickerModelObserver* observer_; | 151 WebIntentPickerModelObserver* observer_; |
144 | 152 |
145 // The url of the intent service that is being displayed inline, or | 153 // The url of the intent service that is being displayed inline, or |
146 // GURL::EmptyGURL() if none. | 154 // GURL::EmptyGURL() if none. |
147 GURL inline_disposition_url_; | 155 GURL inline_disposition_url_; |
148 | 156 |
157 string16 action_; | |
James Hawkins
2012/03/15 01:05:20
Document member variables.
binji
2012/03/15 17:53:14
Done.
| |
158 | |
159 string16 mimetype_; | |
160 | |
149 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 161 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
150 }; | 162 }; |
151 | 163 |
152 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 164 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
OLD | NEW |