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 #include "chrome/browser/ui/intents/web_intent_picker_model.h" | 5 #include "chrome/browser/ui/intents/web_intent_picker_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" | 11 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" |
12 #include "grit/ui_resources_standard.h" | 12 #include "grit/ui_resources.h" |
13 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
14 #include "ui/gfx/image/image.h" | 14 #include "ui/gfx/image/image.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const size_t kMaxSuggestionCount = 5; // Maximum number of visible suggestions. | 18 const size_t kMaxSuggestionCount = 5; // Maximum number of visible suggestions. |
19 | 19 |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 WebIntentPickerModel::WebIntentPickerModel() | 22 WebIntentPickerModel::WebIntentPickerModel() |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 double average_rating) | 169 double average_rating) |
170 : title(title), | 170 : title(title), |
171 id(id), | 171 id(id), |
172 average_rating(average_rating), | 172 average_rating(average_rating), |
173 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( | 173 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( |
174 IDR_DEFAULT_FAVICON)) { | 174 IDR_DEFAULT_FAVICON)) { |
175 } | 175 } |
176 | 176 |
177 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { | 177 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { |
178 } | 178 } |
OLD | NEW |