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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 2019423005: Move //components/ui/zoom to top-level under //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_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 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 18 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
19 #include "chrome/browser/ui/location_bar/location_bar.h" 19 #include "chrome/browser/ui/location_bar/location_bar.h"
20 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" 20 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h"
21 #include "components/content_settings/core/common/content_settings_types.h" 21 #include "components/content_settings/core/common/content_settings_types.h"
22 #include "components/prefs/pref_member.h" 22 #include "components/prefs/pref_member.h"
23 #include "components/ui/zoom/zoom_event_manager_observer.h" 23 #include "components/zoom/zoom_event_manager_observer.h"
24 24
25 @class AutocompleteTextField; 25 @class AutocompleteTextField;
26 class CommandUpdater; 26 class CommandUpdater;
27 class ContentSettingDecoration; 27 class ContentSettingDecoration;
28 class EVBubbleDecoration; 28 class EVBubbleDecoration;
29 class KeywordHintDecoration; 29 class KeywordHintDecoration;
30 class LocationBarDecoration; 30 class LocationBarDecoration;
31 class LocationIconDecoration; 31 class LocationIconDecoration;
32 class ManagePasswordsDecoration; 32 class ManagePasswordsDecoration;
33 class PageActionDecoration; 33 class PageActionDecoration;
34 class Profile; 34 class Profile;
35 class SaveCreditCardDecoration; 35 class SaveCreditCardDecoration;
36 class SelectedKeywordDecoration; 36 class SelectedKeywordDecoration;
37 class StarDecoration; 37 class StarDecoration;
38 class TranslateDecoration; 38 class TranslateDecoration;
39 class ZoomDecoration; 39 class ZoomDecoration;
40 class ZoomDecorationTest; 40 class ZoomDecorationTest;
41 41
42 // A C++ bridge class that represents the location bar UI element to 42 // A C++ bridge class that represents the location bar UI element to
43 // the portable code. Wires up an OmniboxViewMac instance to 43 // the portable code. Wires up an OmniboxViewMac instance to
44 // the location bar text field, which handles most of the work. 44 // the location bar text field, which handles most of the work.
45 45
46 class LocationBarViewMac : public LocationBar, 46 class LocationBarViewMac : public LocationBar,
47 public LocationBarTesting, 47 public LocationBarTesting,
48 public ChromeOmniboxEditController, 48 public ChromeOmniboxEditController,
49 public ui_zoom::ZoomEventManagerObserver { 49 public zoom::ZoomEventManagerObserver {
50 public: 50 public:
51 LocationBarViewMac(AutocompleteTextField* field, 51 LocationBarViewMac(AutocompleteTextField* field,
52 CommandUpdater* command_updater, 52 CommandUpdater* command_updater,
53 Profile* profile, 53 Profile* profile,
54 Browser* browser); 54 Browser* browser);
55 ~LocationBarViewMac() override; 55 ~LocationBarViewMac() override;
56 56
57 // Overridden from LocationBar: 57 // Overridden from LocationBar:
58 void ShowFirstRunBubble() override; 58 void ShowFirstRunBubble() override;
59 GURL GetDestinationURL() const override; 59 GURL GetDestinationURL() const override;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // Indicates whether or not the location bar is currently visible. 285 // Indicates whether or not the location bar is currently visible.
286 bool location_bar_visible_; 286 bool location_bar_visible_;
287 287
288 // Used to schedule a task for the first run info bubble. 288 // Used to schedule a task for the first run info bubble.
289 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 289 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
290 290
291 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 291 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
292 }; 292 };
293 293
294 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 294 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698