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

Side by Side Diff: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc

Issue 10535126: Eliminate the "clock" icon in the omnibox dropdown. The distinction between this and the globe was… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 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 #include "chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h" 5 #include "chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 icon = AutocompleteMatch::TypeToIcon(match.type); 506 icon = AutocompleteMatch::TypeToIcon(match.type);
507 507
508 if (selected) { 508 if (selected) {
509 switch (icon) { 509 switch (icon) {
510 case IDR_OMNIBOX_EXTENSION_APP: 510 case IDR_OMNIBOX_EXTENSION_APP:
511 icon = IDR_OMNIBOX_EXTENSION_APP_DARK; 511 icon = IDR_OMNIBOX_EXTENSION_APP_DARK;
512 break; 512 break;
513 case IDR_OMNIBOX_HTTP: 513 case IDR_OMNIBOX_HTTP:
514 icon = IDR_OMNIBOX_HTTP_DARK; 514 icon = IDR_OMNIBOX_HTTP_DARK;
515 break; 515 break;
516 case IDR_OMNIBOX_HISTORY:
517 icon = IDR_OMNIBOX_HISTORY_DARK;
518 break;
519 case IDR_OMNIBOX_SEARCH: 516 case IDR_OMNIBOX_SEARCH:
520 icon = IDR_OMNIBOX_SEARCH_DARK; 517 icon = IDR_OMNIBOX_SEARCH_DARK;
521 break; 518 break;
522 case IDR_OMNIBOX_STAR: 519 case IDR_OMNIBOX_STAR:
523 icon = IDR_OMNIBOX_STAR_DARK; 520 icon = IDR_OMNIBOX_STAR_DARK;
524 break; 521 break;
525 case IDR_OMNIBOX_TTS: 522 case IDR_OMNIBOX_TTS:
526 icon = IDR_OMNIBOX_TTS_DARK; 523 icon = IDR_OMNIBOX_TTS_DARK;
527 break; 524 break;
528 default: 525 default:
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 theme_service_->GetImageNamed( 730 theme_service_->GetImageNamed(
734 is_selected ? IDR_OMNIBOX_TTS_DARK : 731 is_selected ? IDR_OMNIBOX_TTS_DARK :
735 IDR_OMNIBOX_TTS), 732 IDR_OMNIBOX_TTS),
736 icon_start_x, line_rect.y() + kIconTopPadding); 733 icon_start_x, line_rect.y() + kIconTopPadding);
737 } 734 }
738 } 735 }
739 736
740 cairo_destroy(cr); 737 cairo_destroy(cr);
741 return TRUE; 738 return TRUE;
742 } 739 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.cc ('k') | chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698