|  | Add support for multi resolution icons
To support HiDPI we need a way to load two copies of icons, a low resolution version and a high resolution version.
To support this, this change does the following:
  - split theme_resource.grd into three files:
      - theme_resources.grd: icons that only have one resolution
      - theme_resources_standard.grd: low resolution icons
      - theme_resources_large.grd: high resolution icons
   - theme_resource.grd and theme_resources_standard.grd and compiled into chrome.pak/chrome.rc for all platforms.
   - theme_resources_large.grd is compiled into theme_resources_large.pak for platforms that want high resolution icons (currently only Mac)
   - gfx::Image now support icons with multiple resolution
Currently not all ThemeService APIs return multi-resolution images. Once this is checked in I'll work on converting them as I go.
Note, this change will have to be coordinated with the change to reorganize theme resources. I'll work with saintlou on that.
BUG=75812 
TEST=Added a TIFF to theme_resources.grd. Verified that the toolbar icon had a mutliresolution image. Verified that unit tests passed.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82185
      Total comments: 12
      
     
  
   
  
   
      Total comments: 11
      
     
  
   
  
   
  
   
  
   
  
   
      Total comments: 10
      
     
  
   
      Total comments: 6
      
     
  
   
  
   
  
   
      Total comments: 9
      
     
  
   
  
   
      Total comments: 1
      
     
  
   
      Total comments: 2
      
     
  
   
      Total comments: 2
      
     
  
   
    
  
  
    
      |  | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+868 lines, -396 lines) | Patch |  
        |  | M | chrome/app/theme/theme_resources.grd | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 12 chunks | +0 lines, -248 lines | 0 comments | Download |  
        |  | A | chrome/app/theme/theme_resources_large.grd | View | 1
        
          2 | 1 chunk | +113 lines, -0 lines | 0 comments | Download |  
        |  | A | chrome/app/theme/theme_resources_standard.grd | View | 1
        
          2 | 1 chunk | +113 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/content_setting_image_model.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/resources_util.cc | View | 1
        
          2
        
          3 | 2 chunks | +5 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/resources_util_unittest.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/themes/browser_theme_pack.cc | View | 1 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/themes/browser_theme_pack_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/themes/theme_service.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/themes/theme_service_mac.mm | View | 1
        
          2
        
          3 | 2 chunks | +12 lines, -2 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/background_gradient_view.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/browser_frame_view.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/download/download_shelf_view.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/hover_image_button_unittest.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/location_bar/star_decoration.mm | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/cocoa/tabs/tab_view.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/back_forward_button_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/browser_titlebar.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/browser_toolbar_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/browser_window_gtk.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/gtk_theme_service.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/gtk_util.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/location_bar_view_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/reload_button_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/tests/ui_gfx_image_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12
        
          13 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/tests/ui_gfx_image_unittest.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 3 chunks | +3 lines, -3 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/touch/tabs/touch_tab.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/browser_actions_container.cc | View | 1
        
          2
        
          3 | 2 chunks | +2 lines, -2 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/bubble/bubble_border.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/constrained_window_views.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/detachable_toolbar_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/find_bar_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/frame/glass_browser_frame_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/location_bar/location_bar_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/location_bar/star_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/notifications/balloon_view.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/tabs/base_tab.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/tabs/tab.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/tabs/tab_strip.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/theme_background.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/views/toolbar_view.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/ui/webui/theme_source_unittest.cc | View | 1
        
          2
        
          3 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/chrome.gyp | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 4 chunks | +41 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/chrome_browser.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 2 chunks | +4 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/chrome_common.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 1 chunk | +1 line, -0 lines | 0 comments | Download |  
        |  | M | chrome/chrome_dll.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 3 chunks | +20 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/chrome_tests.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 15 chunks | +16 lines, -0 lines | 0 comments | Download |  
        |  | M | skia/ext/skia_utils_mac.h | View | 1 | 4 chunks | +10 lines, -0 lines | 0 comments | Download |  
        |  | M | skia/ext/skia_utils_mac.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 5 chunks | +46 lines, -13 lines | 0 comments | Download |  
        |  | M | skia/ext/skia_utils_mac_unittest.mm | View | 1
        
          2
        
          3
        
          4 | 3 chunks | +120 lines, -23 lines | 0 comments | Download |  
        |  | M | tools/grit/grit/format/resource_map.py | View | 1
        
          2
        
          3 | 1 chunk | +4 lines, -0 lines | 0 comments | Download |  
        |  | M | tools/grit/resource_ids | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11 | 1 chunk | +8 lines, -1 line | 0 comments | Download |  
        |  | M | ui/base/resource/resource_bundle.h | View | 1 | 2 chunks | +3 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/base/resource/resource_bundle.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 3 chunks | +11 lines, -1 line | 0 comments | Download |  
        |  | M | ui/base/resource/resource_bundle_linux.cc | View | 1 | 1 chunk | +6 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/base/resource/resource_bundle_mac.mm | View | 1
        
          2
        
          3
        
          4 | 2 chunks | +20 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/base/resource/resource_bundle_posix.cc | View | 1 | 1 chunk | +8 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/gfx/image.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12
        
          13
        
          14
        
          15
        
          16 | 5 chunks | +19 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/gfx/image.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 7 chunks | +35 lines, -10 lines | 0 comments | Download |  
        |  | M | ui/gfx/image_mac.mm | View | 1
        
          2
        
          3 | 1 chunk | +10 lines, -2 lines | 0 comments | Download |  
        |  | A | ui/gfx/image_mac_unittest.mm | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 1 chunk | +114 lines, -0 lines | 0 comments | Download |  
        |  | M | ui/gfx/image_unittest.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 1 chunk | +0 lines, -67 lines | 0 comments | Download |  
        |  | M | ui/gfx/image_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 6 chunks | +40 lines, -5 lines | 0 comments | Download |  
        |  | A | ui/gfx/image_unittest_util.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12
        
          13
        
          14
        
          15 | 1 chunk | +33 lines, -0 lines | 0 comments | Download |  
        |  | A + | ui/gfx/image_unittest_util.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12
        
          13
        
          14 | 3 chunks | +4 lines, -16 lines | 0 comments | Download |  
        |  | M | ui/ui_unittests.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9
        
          10
        
          11
        
          12 | 1 chunk | +3 lines, -1 line | 0 comments | Download |  
    Total messages: 37 (0 generated)
     |