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

Side by Side Diff: chrome/browser/chromeos/views/dropdown_button.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 "app/resource_bundle.h"
6 #include "chrome/browser/chromeos/views/dropdown_button.h" 5 #include "chrome/browser/chromeos/views/dropdown_button.h"
7 #include "gfx/canvas_skia.h" 6 #include "gfx/canvas_skia.h"
8 #include "grit/theme_resources.h" 7 #include "grit/theme_resources.h"
8 #include "ui/base/resource/resource_bundle.h"
9 9
10 namespace { 10 namespace {
11 // Asset icon particularities makes us offset focus frame. 11 // Asset icon particularities makes us offset focus frame.
12 const int kFocusFrameTopOffset = 0; 12 const int kFocusFrameTopOffset = 0;
13 const int kFocusFrameLeftOffset = 0; 13 const int kFocusFrameLeftOffset = 0;
14 const int kFocusFrameRightOffset = 0; 14 const int kFocusFrameRightOffset = 0;
15 const int kFocusFrameBottomOffset = 1; 15 const int kFocusFrameBottomOffset = 1;
16 16
17 // TextButtonBorder specification that uses different icons to draw the 17 // TextButtonBorder specification that uses different icons to draw the
18 // button. 18 // button.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 void DropDownButton::PaintFocusBorder(gfx::Canvas* canvas) { 66 void DropDownButton::PaintFocusBorder(gfx::Canvas* canvas) {
67 if (HasFocus() && (IsFocusable() || IsAccessibilityFocusableInRootView())) 67 if (HasFocus() && (IsFocusable() || IsAccessibilityFocusableInRootView()))
68 canvas->DrawFocusRect(kFocusFrameLeftOffset, kFocusFrameTopOffset, 68 canvas->DrawFocusRect(kFocusFrameLeftOffset, kFocusFrameTopOffset,
69 width() - kFocusFrameRightOffset, 69 width() - kFocusFrameRightOffset,
70 height() - kFocusFrameBottomOffset); 70 height() - kFocusFrameBottomOffset);
71 } 71 }
72 72
73 } // namespace chromeos 73 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/power_menu_button.cc ('k') | chrome/browser/chromeos/volume_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698