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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" 15 #include "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h"
16 #include "components/omnibox/browser/omnibox_view.h" 16 #include "components/omnibox/browser/omnibox_view.h"
17 #include "components/security_state/core/security_state.h" 17 #include "components/security_state/core/security_state.h"
18 #include "third_party/skia/include/core/SkColor.h" 18 #include "third_party/skia/include/core/SkColor.h"
19 19
20 class CommandUpdater; 20 class CommandUpdater;
21 class OmniboxPopupView; 21 class OmniboxPopupView;
22 class Profile; 22 class Profile;
23 23
24 namespace content { 24 namespace content {
25 class WebContents; 25 class WebContents;
26 } 26 }
27 27
28 namespace ui {
29 class Clipboard;
30 }
31
32 // Implements OmniboxView on an AutocompleteTextField. 28 // Implements OmniboxView on an AutocompleteTextField.
33 class OmniboxViewMac : public OmniboxView, 29 class OmniboxViewMac : public OmniboxView,
34 public AutocompleteTextFieldObserver { 30 public AutocompleteTextFieldObserver {
35 public: 31 public:
36 static SkColor BaseTextColorSkia(bool in_dark_mode); 32 static SkColor BaseTextColorSkia(bool in_dark_mode);
37 static NSColor* BaseTextColor(bool in_dark_mode); 33 static NSColor* BaseTextColor(bool in_dark_mode);
38 static NSColor* GetSecureTextColor( 34 static NSColor* GetSecureTextColor(
39 security_state::SecurityLevel security_level, 35 security_state::SecurityLevel security_level,
40 bool in_dark_mode); 36 bool in_dark_mode);
41 37
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // painted. Used to measure omnibox responsiveness with a histogram. 225 // painted. Used to measure omnibox responsiveness with a histogram.
230 base::TimeTicks insert_char_time_; 226 base::TimeTicks insert_char_time_;
231 227
232 // The time when OnBeforeDrawRect() was called. 228 // The time when OnBeforeDrawRect() was called.
233 base::TimeTicks draw_rect_start_time_; 229 base::TimeTicks draw_rect_start_time_;
234 230
235 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); 231 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac);
236 }; 232 };
237 233
238 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ 234 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_controller.h ('k') | chrome/browser/ui/cocoa/passwords/password_item_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698