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

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

Issue 160378: Make TOOLKIT_VIEWS port use views-based Autocomplete popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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_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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void RevertAll(); 76 virtual void RevertAll();
77 virtual void UpdatePopup(); 77 virtual void UpdatePopup();
78 virtual void ClosePopup(); 78 virtual void ClosePopup();
79 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, 79 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text,
80 bool save_original_selection); 80 bool save_original_selection);
81 virtual bool OnInlineAutocompleteTextMaybeChanged( 81 virtual bool OnInlineAutocompleteTextMaybeChanged(
82 const std::wstring& display_text, size_t user_text_length); 82 const std::wstring& display_text, size_t user_text_length);
83 virtual void OnRevertTemporaryText(); 83 virtual void OnRevertTemporaryText();
84 virtual void OnBeforePossibleChange(); 84 virtual void OnBeforePossibleChange();
85 virtual bool OnAfterPossibleChange(); 85 virtual bool OnAfterPossibleChange();
86 virtual gfx::NativeView GetNativeView() const;
86 87
87 // Helper functions for use from AutocompleteEditHelper Objective-C 88 // Helper functions for use from AutocompleteEditHelper Objective-C
88 // class. 89 // class.
89 90
90 // Returns true if |popup_view_| is open. 91 // Returns true if |popup_view_| is open.
91 bool IsPopupOpen() const; 92 bool IsPopupOpen() const;
92 93
93 // Trivial wrappers forwarding to |model_| methods. 94 // Trivial wrappers forwarding to |model_| methods.
94 void OnControlKeyChanged(bool pressed); 95 void OnControlKeyChanged(bool pressed);
95 void OnEscapeKeyPressed(); 96 void OnEscapeKeyPressed();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // Tracking state before and after a possible change for reporting 169 // Tracking state before and after a possible change for reporting
169 // to model_. 170 // to model_.
170 NSRange selection_before_change_; 171 NSRange selection_before_change_;
171 std::wstring text_before_change_; 172 std::wstring text_before_change_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 174 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 177 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698