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

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

Issue 264037: Refactor security-icon code to a more general form (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void OnBeforePossibleChange(); 89 virtual void OnBeforePossibleChange();
90 virtual bool OnAfterPossibleChange(); 90 virtual bool OnAfterPossibleChange();
91 virtual gfx::NativeView GetNativeView() const; 91 virtual gfx::NativeView GetNativeView() const;
92 92
93 // Implement the AutocompleteTextFieldObserver interface. 93 // Implement the AutocompleteTextFieldObserver interface.
94 virtual void OnControlKeyChanged(bool pressed); 94 virtual void OnControlKeyChanged(bool pressed);
95 virtual void OnPaste(); 95 virtual void OnPaste();
96 virtual bool CanPasteAndGo(); 96 virtual bool CanPasteAndGo();
97 virtual int GetPasteActionStringId(); 97 virtual int GetPasteActionStringId();
98 virtual void OnPasteAndGo(); 98 virtual void OnPasteAndGo();
99 virtual void OnSecurityIconClicked();
100 virtual void OnFrameChanged(); 99 virtual void OnFrameChanged();
101 100
102 // Helper functions for use from AutocompleteEditHelper Objective-C 101 // Helper functions for use from AutocompleteEditHelper Objective-C
103 // class. 102 // class.
104 103
105 // Returns true if |popup_view_| is open. 104 // Returns true if |popup_view_| is open.
106 bool IsPopupOpen() const; 105 bool IsPopupOpen() const;
107 106
108 // Trivial wrappers forwarding to |model_| methods. 107 // Trivial wrappers forwarding to |model_| methods.
109 void OnEscapeKeyPressed(); 108 void OnEscapeKeyPressed();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 190
192 // Tracking state before and after a possible change for reporting 191 // Tracking state before and after a possible change for reporting
193 // to model_. 192 // to model_.
194 NSRange selection_before_change_; 193 NSRange selection_before_change_;
195 std::wstring text_before_change_; 194 std::wstring text_before_change_;
196 195
197 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 196 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
198 }; 197 };
199 198
200 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 199 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698