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.h" | 12 #include "grit/ui_resources_standard.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 double average_rating) | 159 double average_rating) |
160 : title(title), | 160 : title(title), |
161 id(id), | 161 id(id), |
162 average_rating(average_rating), | 162 average_rating(average_rating), |
163 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( | 163 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( |
164 IDR_DEFAULT_FAVICON)) { | 164 IDR_DEFAULT_FAVICON)) { |
165 } | 165 } |
166 | 166 |
167 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { | 167 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { |
168 } | 168 } |
OLD | NEW |