| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // Remove a suggested extension from the picker at |index|. | 106 // Remove a suggested extension from the picker at |index|. |
| 107 void RemoveSuggestedExtensionAt(size_t index); | 107 void RemoveSuggestedExtensionAt(size_t index); |
| 108 | 108 |
| 109 // Return the suggested extension at |index|. | 109 // Return the suggested extension at |index|. |
| 110 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; | 110 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; |
| 111 | 111 |
| 112 // Return the number of suggested extensions. | 112 // Return the number of suggested extensions. |
| 113 size_t GetSuggestedExtensionCount() const; | 113 size_t GetSuggestedExtensionCount() const; |
| 114 | 114 |
| 115 // Set the icon image for the suggested extension with |id|. |
| 116 void SetSuggestedExtensionIconWithId(const string16& id, |
| 117 const gfx::Image& image); |
| 118 |
| 115 // Set the picker to display the intent service at |index| inline. | 119 // Set the picker to display the intent service at |index| inline. |
| 116 void SetInlineDisposition(size_t index); | 120 void SetInlineDisposition(size_t index); |
| 117 | 121 |
| 118 // Returns true if the picker is currently displaying an inline service. | 122 // Returns true if the picker is currently displaying an inline service. |
| 119 bool IsInlineDisposition() const; | 123 bool IsInlineDisposition() const; |
| 120 | 124 |
| 121 // Returns the index of the intent service that is being displayed inline, or | 125 // Returns the index of the intent service that is being displayed inline, or |
| 122 // std::string::npos if none. | 126 // std::string::npos if none. |
| 123 size_t inline_disposition_index() const { return inline_disposition_index_; } | 127 size_t inline_disposition_index() const { return inline_disposition_index_; } |
| 124 | 128 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 139 WebIntentPickerModelObserver* observer_; | 143 WebIntentPickerModelObserver* observer_; |
| 140 | 144 |
| 141 // The index of the intent service that is being displayed inline, or | 145 // The index of the intent service that is being displayed inline, or |
| 142 // std::string::npos if none. | 146 // std::string::npos if none. |
| 143 size_t inline_disposition_index_; | 147 size_t inline_disposition_index_; |
| 144 | 148 |
| 145 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 149 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
| 146 }; | 150 }; |
| 147 | 151 |
| 148 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 152 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
| OLD | NEW |