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

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

Issue 194110: Convert the AutocompletePopupPositioner into a BubblePositioner in preparatio... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/autocomplete/autocomplete_edit.h" 12 #include "chrome/browser/autocomplete/autocomplete_edit.h"
13 #include "chrome/browser/autocomplete/autocomplete_edit_view_mac.h" 13 #include "chrome/browser/autocomplete/autocomplete_edit_view_mac.h"
14 #include "chrome/browser/location_bar.h" 14 #include "chrome/browser/location_bar.h"
15 15
16 class AutocompletePopupPositioner;
17 @class AutocompleteTextField; 16 @class AutocompleteTextField;
17 class BubblePositioner;
18 class CommandUpdater; 18 class CommandUpdater;
19 class Profile; 19 class Profile;
20 class ToolbarModel; 20 class ToolbarModel;
21 21
22 // A C++ bridge class that represents the location bar UI element to 22 // A C++ bridge class that represents the location bar UI element to
23 // the portable code. Wires up an AutocompleteEditViewMac instance to 23 // the portable code. Wires up an AutocompleteEditViewMac instance to
24 // the location bar text field, which handles most of the work. 24 // the location bar text field, which handles most of the work.
25 25
26 class LocationBarViewMac : public AutocompleteEditController, 26 class LocationBarViewMac : public AutocompleteEditController,
27 public LocationBar, 27 public LocationBar,
28 public LocationBarTesting { 28 public LocationBarTesting {
29 public: 29 public:
30 LocationBarViewMac(AutocompleteTextField* field, 30 LocationBarViewMac(AutocompleteTextField* field,
31 AutocompletePopupPositioner* positioner, 31 const BubblePositioner* bubble_positioner,
32 CommandUpdater* command_updater, 32 CommandUpdater* command_updater,
33 ToolbarModel* toolbar_model, 33 ToolbarModel* toolbar_model,
34 Profile* profile); 34 Profile* profile);
35 virtual ~LocationBarViewMac(); 35 virtual ~LocationBarViewMac();
36 36
37 // Overridden from LocationBar: 37 // Overridden from LocationBar:
38 virtual void ShowFirstRunBubble(bool use_OEM_bubble) { NOTIMPLEMENTED(); } 38 virtual void ShowFirstRunBubble(bool use_OEM_bubble) { NOTIMPLEMENTED(); }
39 virtual std::wstring GetInputString() const; 39 virtual std::wstring GetInputString() const;
40 virtual WindowOpenDisposition GetWindowOpenDisposition() const; 40 virtual WindowOpenDisposition GetWindowOpenDisposition() const;
41 virtual PageTransition::Type GetPageTransition() const; 41 virtual PageTransition::Type GetPageTransition() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Image used in drawing keyword hint. 103 // Image used in drawing keyword hint.
104 scoped_nsobject<NSImage> tab_button_image_; 104 scoped_nsobject<NSImage> tab_button_image_;
105 105
106 // The transition type to use for the navigation. 106 // The transition type to use for the navigation.
107 PageTransition::Type transition_; 107 PageTransition::Type transition_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 109 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
110 }; 110 };
111 111
112 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 112 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698