Commit ae3c2060 authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[Omnibox] Default answer icon

This CL adds a default (or fallback) icon for Answers in Suggest that
don't have a specific icon.

Bug: 838733
Change-Id: I723d64e29f8222e873345c6e04d90e1b26cb1631
Reviewed-on: https://chromium-review.googlesource.com/1108514Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568999}
parent 8f0c8c8d
...@@ -323,6 +323,7 @@ void OmniboxMatchCellView::OnMatchUpdate(const OmniboxResultView* result_view, ...@@ -323,6 +323,7 @@ void OmniboxMatchCellView::OnMatchUpdate(const OmniboxResultView* result_view,
vector_icon = &omnibox::kAnswerWhenIsIcon; vector_icon = &omnibox::kAnswerWhenIsIcon;
break; break;
default: default:
vector_icon = &omnibox::kAnswerDefaultIcon;
break; break;
} }
if (vector_icon) { if (vector_icon) {
......
...@@ -21,6 +21,7 @@ aggregate_vector_icons("omnibox_vector_icons") { ...@@ -21,6 +21,7 @@ aggregate_vector_icons("omnibox_vector_icons") {
icons = [ icons = [
"answer_currency.icon", "answer_currency.icon",
"answer_default.icon",
"answer_dictionary.icon", "answer_dictionary.icon",
"answer_finance.icon", "answer_finance.icon",
"answer_sunrise.icon", "answer_sunrise.icon",
......
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
CANVAS_DIMENSIONS, 24,
MOVE_TO, 12.23f, 14.28f,
V_LINE_TO, 9.82f,
H_LINE_TO, 23.33f,
CUBIC_TO, 23.49f, 10.57f, 23.63f, 11.28f, 23.63f, 12.28f,
CUBIC_TO, 23.63f, 19.13f, 19.08f, 24, 12.24f, 24,
CUBIC_TO, 5.69f, 24, 0.38f, 18.62f, 0.38f, 12,
CUBIC_TO, 0.38f, 5.38f, 5.69f, 0, 12.23f, 0,
R_CUBIC_TO, 3.2f, 0, 5.88f, 1.19f, 7.93f, 3.13f,
R_LINE_TO, -3.37f, 3.31f,
R_CUBIC_TO, -0.85f, -0.82f, -2.34f, -1.79f, -4.56f, -1.79f,
R_CUBIC_TO, -3.92f, 0, -7.13f, 3.3f, -7.13f, 7.34f,
R_CUBIC_TO, 0, 4.04f, 3.2f, 7.34f, 7.13f, 7.34f,
R_CUBIC_TO, 4.54f, 0, 6.21f, -3.18f, 6.52f, -5.06f,
CLOSE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment