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

Side by Side Diff: views/controls/table/native_table_win.cc

Issue 6681041: fav icon -> favicon. Pass 3: kFavIconSize -> kFaviconSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
« no previous file with comments | « views/controls/menu/menu_item_view_gtk.cc ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "views/controls/table/native_table_win.h" 5 #include "views/controls/table/native_table_win.h"
6 6
7 #include <commctrl.h> 7 #include <commctrl.h>
8 #include <windowsx.h> 8 #include <windowsx.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // NOTE: This may be invoked without the ListView filling in the 530 // NOTE: This may be invoked without the ListView filling in the
531 // background (or rather windows paints background, then invokes 531 // background (or rather windows paints background, then invokes
532 // this twice). As such, we always fill in the background. 532 // this twice). As such, we always fill in the background.
533 canvas.drawColor( 533 canvas.drawColor(
534 skia::COLORREFToSkColor(GetSysColor(bg_color_index)), 534 skia::COLORREFToSkColor(GetSysColor(bg_color_index)),
535 SkXfermode::kSrc_Mode); 535 SkXfermode::kSrc_Mode);
536 // + 1 for padding (we declared the image as 18x18 in the list- 536 // + 1 for padding (we declared the image as 18x18 in the list-
537 // view when they are 16x16 so we get an extra pixel of padding). 537 // view when they are 16x16 so we get an extra pixel of padding).
538 canvas.DrawBitmapInt(image, 0, 0, 538 canvas.DrawBitmapInt(image, 0, 0,
539 image.width(), image.height(), 539 image.width(), image.height(),
540 1, 1, kFavIconSize, kFavIconSize, true); 540 1, 1, kFaviconSize, kFaviconSize, true);
541 541
542 // Only paint the visible region of the icon. 542 // Only paint the visible region of the icon.
543 RECT to_draw = { intersection.left - icon_rect.left, 543 RECT to_draw = { intersection.left - icon_rect.left,
544 intersection.top - icon_rect.top, 544 intersection.top - icon_rect.top,
545 0, 0 }; 545 0, 0 };
546 to_draw.right = to_draw.left + 546 to_draw.right = to_draw.left +
547 (intersection.right - intersection.left); 547 (intersection.right - intersection.left);
548 to_draw.bottom = to_draw.top + 548 to_draw.bottom = to_draw.top +
549 (intersection.bottom - intersection.top); 549 (intersection.bottom - intersection.top);
550 canvas.getTopPlatformDevice().drawToHDC(draw_info->nmcd.hdc, 550 canvas.getTopPlatformDevice().drawToHDC(draw_info->nmcd.hdc,
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 902
903 //////////////////////////////////////////////////////////////////////////////// 903 ////////////////////////////////////////////////////////////////////////////////
904 // NativeButtonWrapper, public: 904 // NativeButtonWrapper, public:
905 905
906 // static 906 // static
907 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { 907 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) {
908 return new NativeTableWin(table); 908 return new NativeTableWin(table);
909 } 909 }
910 910
911 } // namespace views 911 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_item_view_gtk.cc ('k') | views/controls/table/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698