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/website_settings/website_settings_ui.h" | 5 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |
6 | 6 |
7 #include "chrome/grit/generated_resources.h" | 7 #include "chrome/grit/generated_resources.h" |
8 #include "grit/theme_resources.h" | 8 #include "grit/theme_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/gfx/image/image.h" | 11 #include "ui/gfx/image/image.h" |
12 #include "ui/resources/grit/ui_resources.h" | |
13 | 12 |
14 namespace { | 13 namespace { |
15 | 14 |
16 const int kInvalidResourceID = -1; | 15 const int kInvalidResourceID = -1; |
17 | 16 |
18 // The resource id's for the strings that are displayed on the permissions | 17 // The resource id's for the strings that are displayed on the permissions |
19 // button if the permission setting is managed by policy. | 18 // button if the permission setting is managed by policy. |
20 const int kPermissionButtonTextIDPolicyManaged[] = { | 19 const int kPermissionButtonTextIDPolicyManaged[] = { |
21 kInvalidResourceID, | 20 kInvalidResourceID, |
22 IDS_WEBSITE_SETTINGS_BUTTON_TEXT_ALLOWED_BY_POLICY, | 21 IDS_WEBSITE_SETTINGS_BUTTON_TEXT_ALLOWED_BY_POLICY, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // the first time. | 326 // the first time. |
328 return IDR_PAGEINFO_INFO; | 327 return IDR_PAGEINFO_INFO; |
329 } | 328 } |
330 | 329 |
331 // static | 330 // static |
332 const gfx::Image& WebsiteSettingsUI::GetFirstVisitIcon( | 331 const gfx::Image& WebsiteSettingsUI::GetFirstVisitIcon( |
333 const base::string16& first_visit) { | 332 const base::string16& first_visit) { |
334 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 333 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
335 return rb.GetNativeImageNamed(GetFirstVisitIconID(first_visit)); | 334 return rb.GetNativeImageNamed(GetFirstVisitIconID(first_visit)); |
336 } | 335 } |
OLD | NEW |