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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h

Issue 2082723002: [Material][Mac] Set Incognito Omnibox Dropdown Icons to White (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void PaintUpdatesNow() override; 46 void PaintUpdatesNow() override;
47 void OnDragCanceled() override {} 47 void OnDragCanceled() override {}
48 48
49 // Overridden from OmniboxPopupMatrixDelegate: 49 // Overridden from OmniboxPopupMatrixDelegate:
50 void OnMatrixRowSelected(OmniboxPopupMatrix* matrix, size_t row) override; 50 void OnMatrixRowSelected(OmniboxPopupMatrix* matrix, size_t row) override;
51 void OnMatrixRowClicked(OmniboxPopupMatrix* matrix, size_t row) override; 51 void OnMatrixRowClicked(OmniboxPopupMatrix* matrix, size_t row) override;
52 void OnMatrixRowMiddleClicked(OmniboxPopupMatrix* matrix, 52 void OnMatrixRowMiddleClicked(OmniboxPopupMatrix* matrix,
53 size_t row) override; 53 size_t row) override;
54 54
55 // Returns the NSImage that should be used as an icon for the given match. 55 // Returns the NSImage that should be used as an icon for the given match.
56 NSImage* ImageForMatch(const AutocompleteMatch& match, 56 NSImage* ImageForMatch(const AutocompleteMatch& match) const;
57 BOOL ignore_dark_theme) const;
58 57
59 OmniboxPopupMatrix* matrix() { return matrix_; } 58 OmniboxPopupMatrix* matrix() { return matrix_; }
60 59
61 protected: 60 protected:
62 // Gets the autocomplete results. This is virtual so that it can be overridden 61 // Gets the autocomplete results. This is virtual so that it can be overridden
63 // by tests. 62 // by tests.
64 virtual const AutocompleteResult& GetResult() const; 63 virtual const AutocompleteResult& GetResult() const;
65 64
66 private: 65 private:
67 // Create the popup_ instance if needed. 66 // Create the popup_ instance if needed.
(...skipping 20 matching lines...) Expand all
88 87
89 base::scoped_nsobject<OmniboxPopupMatrix> matrix_; 88 base::scoped_nsobject<OmniboxPopupMatrix> matrix_;
90 base::scoped_nsobject<NSView> top_separator_view_; 89 base::scoped_nsobject<NSView> top_separator_view_;
91 base::scoped_nsobject<NSView> bottom_separator_view_; 90 base::scoped_nsobject<NSView> bottom_separator_view_;
92 base::scoped_nsobject<NSBox> background_view_; 91 base::scoped_nsobject<NSBox> background_view_;
93 92
94 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac); 93 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac);
95 }; 94 };
96 95
97 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_ 96 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698