| OLD | NEW | 
|    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  Loading... | 
|   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  Loading... | 
|  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_ | 
| OLD | NEW |