Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/content_setting_image_model.cc

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/content_setting_image_model.h" 5 #include "chrome/browser/content_setting_image_model.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/prerender/prerender_manager.h" 9 #include "chrome/browser/prerender/prerender_manager.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
13 #include "grit/theme_resources.h" 13 #include "grit/theme_resources.h"
14 #include "grit/theme_resources_standard.h"
14 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
15 16
16 class ContentSettingBlockedImageModel : public ContentSettingImageModel { 17 class ContentSettingBlockedImageModel : public ContentSettingImageModel {
17 public: 18 public:
18 explicit ContentSettingBlockedImageModel( 19 explicit ContentSettingBlockedImageModel(
19 ContentSettingsType content_settings_type); 20 ContentSettingsType content_settings_type);
20 21
21 virtual void UpdateFromTabContents(TabContents* tab_contents); 22 virtual void UpdateFromTabContents(TabContents* tab_contents);
22 23
23 private: 24 private:
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 case CONTENT_SETTINGS_TYPE_GEOLOCATION: 207 case CONTENT_SETTINGS_TYPE_GEOLOCATION:
207 return new ContentSettingGeolocationImageModel(); 208 return new ContentSettingGeolocationImageModel();
208 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: 209 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
209 return new ContentSettingNotificationsImageModel(); 210 return new ContentSettingNotificationsImageModel();
210 case CONTENT_SETTINGS_TYPE_PRERENDER: 211 case CONTENT_SETTINGS_TYPE_PRERENDER:
211 return new ContentSettingPrerenderImageModel(); 212 return new ContentSettingPrerenderImageModel();
212 default: 213 default:
213 return new ContentSettingBlockedImageModel(content_settings_type); 214 return new ContentSettingBlockedImageModel(content_settings_type);
214 } 215 }
215 } 216 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac.mm ('k') | chrome/browser/resources_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698