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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/star_decoration.mm

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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
OLDNEW
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 #import "chrome/browser/ui/cocoa/location_bar/star_decoration.h" 5 #import "chrome/browser/ui/cocoa/location_bar/star_decoration.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/command_updater.h" 8 #include "chrome/browser/command_updater.h"
9 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 9 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
10 #import "chrome/browser/ui/cocoa/themed_window.h" 10 #import "chrome/browser/ui/cocoa/themed_window.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "grit/components_strings.h" 12 #include "components/strings/grit/components_strings.h"
13 #include "grit/theme_resources.h" 13 #include "grit/theme_resources.h"
14 #include "ui/base/l10n/l10n_util_mac.h" 14 #include "ui/base/l10n/l10n_util_mac.h"
15 #include "ui/base/material_design/material_design_controller.h" 15 #include "ui/base/material_design/material_design_controller.h"
16 #include "ui/gfx/color_palette.h" 16 #include "ui/gfx/color_palette.h"
17 17
18 namespace { 18 namespace {
19 19
20 // The info-bubble point should look like it points to the point 20 // The info-bubble point should look like it points to the point
21 // between the star's lower tips. The popup should be where the 21 // between the star's lower tips. The popup should be where the
22 // Omnibox popup ends up (2px below field). Determined via Pixie.app 22 // Omnibox popup ends up (2px below field). Determined via Pixie.app
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (location_bar_is_dark) { 70 if (location_bar_is_dark) {
71 return starred_ ? gfx::kGoogleBlue300 : SkColorSetA(SK_ColorWHITE, 0xCC); 71 return starred_ ? gfx::kGoogleBlue300 : SkColorSetA(SK_ColorWHITE, 0xCC);
72 } 72 }
73 return starred_ ? gfx::kGoogleBlue500 : gfx::kChromeIconGrey; 73 return starred_ ? gfx::kGoogleBlue500 : gfx::kChromeIconGrey;
74 } 74 }
75 75
76 gfx::VectorIconId StarDecoration::GetMaterialVectorIconId() const { 76 gfx::VectorIconId StarDecoration::GetMaterialVectorIconId() const {
77 return starred_ ? gfx::VectorIconId::LOCATION_BAR_STAR_ACTIVE 77 return starred_ ? gfx::VectorIconId::LOCATION_BAR_STAR_ACTIVE
78 : gfx::VectorIconId::LOCATION_BAR_STAR; 78 : gfx::VectorIconId::LOCATION_BAR_STAR;
79 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698