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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.h

Issue 1578021: Shift omnibox dropdown in and up on Windows, and square off the top, so it co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 2010 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" 11 #include "chrome/browser/autocomplete/autocomplete_edit_view.h"
12 #include "chrome/browser/cocoa/autocomplete_text_field.h" 12 #include "chrome/browser/cocoa/autocomplete_text_field.h"
13 13
14 class AutocompleteEditController; 14 class AutocompleteEditController;
15 class AutocompletePopupViewMac; 15 class AutocompletePopupViewMac;
16 class BubblePositioner;
17 class Clipboard; 16 class Clipboard;
18 class Profile; 17 class Profile;
19 class ToolbarModel; 18 class ToolbarModel;
20 19
21 // Implements AutocompleteEditView on an AutocompleteTextField. 20 // Implements AutocompleteEditView on an AutocompleteTextField.
22 21
23 class AutocompleteEditViewMac : public AutocompleteEditView, 22 class AutocompleteEditViewMac : public AutocompleteEditView,
24 public AutocompleteTextFieldObserver { 23 public AutocompleteTextFieldObserver {
25 public: 24 public:
26 AutocompleteEditViewMac(AutocompleteEditController* controller, 25 AutocompleteEditViewMac(AutocompleteEditController* controller,
27 const BubblePositioner* bubble_positioner,
28 ToolbarModel* toolbar_model, 26 ToolbarModel* toolbar_model,
29 Profile* profile, 27 Profile* profile,
30 CommandUpdater* command_updater, 28 CommandUpdater* command_updater,
31 AutocompleteTextField* field); 29 AutocompleteTextField* field);
32 virtual ~AutocompleteEditViewMac(); 30 virtual ~AutocompleteEditViewMac();
33 31
34 // Implement the AutocompleteEditView interface. 32 // Implement the AutocompleteEditView interface.
35 // TODO(shess): See if this couldn't be simplified to: 33 // TODO(shess): See if this couldn't be simplified to:
36 // virtual AEM* model() const { ... } 34 // virtual AEM* model() const { ... }
37 virtual AutocompleteEditModel* model() { return model_.get(); } 35 virtual AutocompleteEditModel* model() { return model_.get(); }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 NSRange selection_before_change_; 153 NSRange selection_before_change_;
156 std::wstring text_before_change_; 154 std::wstring text_before_change_;
157 155
158 // The maximum/standard line height for the displayed text. 156 // The maximum/standard line height for the displayed text.
159 CGFloat line_height_; 157 CGFloat line_height_;
160 158
161 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 159 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
162 }; 160 };
163 161
164 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 162 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698