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

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

Issue 1718563002: Convert location bar decorations to Material Design (Mac). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_toolbar
Patch Set: Fix issue from browser test. Created 4 years, 9 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_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_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 12 matching lines...) Expand all
23 } 23 }
24 24
25 namespace ui { 25 namespace ui {
26 class Clipboard; 26 class Clipboard;
27 } 27 }
28 28
29 // Implements OmniboxView on an AutocompleteTextField. 29 // Implements OmniboxView on an AutocompleteTextField.
30 class OmniboxViewMac : public OmniboxView, 30 class OmniboxViewMac : public OmniboxView,
31 public AutocompleteTextFieldObserver { 31 public AutocompleteTextFieldObserver {
32 public: 32 public:
33 static NSColor* BaseTextColor(bool inDarkMode);
34
33 OmniboxViewMac(OmniboxEditController* controller, 35 OmniboxViewMac(OmniboxEditController* controller,
34 Profile* profile, 36 Profile* profile,
35 CommandUpdater* command_updater, 37 CommandUpdater* command_updater,
36 AutocompleteTextField* field); 38 AutocompleteTextField* field);
37 ~OmniboxViewMac() override; 39 ~OmniboxViewMac() override;
38 40
39 // For use when switching tabs, this saves the current state onto the tab so 41 // For use when switching tabs, this saves the current state onto the tab so
40 // that it can be restored during a later call to Update(). 42 // that it can be restored during a later call to Update().
41 void SaveStateToTab(content::WebContents* tab); 43 void SaveStateToTab(content::WebContents* tab);
42 44
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 NSRange coalesced_range_update_; 223 NSRange coalesced_range_update_;
222 224
223 // The time of the first character insert operation that has not yet been 225 // The time of the first character insert operation that has not yet been
224 // painted. Used to measure omnibox responsiveness with a histogram. 226 // painted. Used to measure omnibox responsiveness with a histogram.
225 base::TimeTicks insert_char_time_; 227 base::TimeTicks insert_char_time_;
226 228
227 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); 229 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac);
228 }; 230 };
229 231
230 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 232 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/zoom_decoration_unittest.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698