| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual string16 GetInstantSuggestion() const OVERRIDE; | 64 virtual string16 GetInstantSuggestion() const OVERRIDE; |
| 65 virtual int TextWidth() const OVERRIDE; | 65 virtual int TextWidth() const OVERRIDE; |
| 66 virtual bool IsImeComposing() const OVERRIDE; | 66 virtual bool IsImeComposing() const OVERRIDE; |
| 67 | 67 |
| 68 // Implement the AutocompleteTextFieldObserver interface. | 68 // Implement the AutocompleteTextFieldObserver interface. |
| 69 virtual NSRange SelectionRangeForProposedRange( | 69 virtual NSRange SelectionRangeForProposedRange( |
| 70 NSRange proposed_range) OVERRIDE; | 70 NSRange proposed_range) OVERRIDE; |
| 71 virtual void OnControlKeyChanged(bool pressed) OVERRIDE; | 71 virtual void OnControlKeyChanged(bool pressed) OVERRIDE; |
| 72 virtual bool CanCopy() OVERRIDE; | 72 virtual bool CanCopy() OVERRIDE; |
| 73 virtual void CopyToPasteboard(NSPasteboard* pboard) OVERRIDE; | 73 virtual void CopyToPasteboard(NSPasteboard* pboard) OVERRIDE; |
| 74 virtual void CopyURLToPasteboard(NSPasteboard* pboard) OVERRIDE; |
| 74 virtual void OnPaste() OVERRIDE; | 75 virtual void OnPaste() OVERRIDE; |
| 76 virtual bool ShouldAddCopyURL() OVERRIDE; |
| 75 virtual bool CanPasteAndGo() OVERRIDE; | 77 virtual bool CanPasteAndGo() OVERRIDE; |
| 76 virtual int GetPasteActionStringId() OVERRIDE; | 78 virtual int GetPasteActionStringId() OVERRIDE; |
| 77 virtual void OnPasteAndGo() OVERRIDE; | 79 virtual void OnPasteAndGo() OVERRIDE; |
| 78 virtual void OnFrameChanged() OVERRIDE; | 80 virtual void OnFrameChanged() OVERRIDE; |
| 79 virtual void ClosePopup() OVERRIDE; | 81 virtual void ClosePopup() OVERRIDE; |
| 80 virtual void OnDidBeginEditing() OVERRIDE; | 82 virtual void OnDidBeginEditing() OVERRIDE; |
| 81 virtual void OnBeforeChange() OVERRIDE; | 83 virtual void OnBeforeChange() OVERRIDE; |
| 82 virtual void OnDidChange() OVERRIDE; | 84 virtual void OnDidChange() OVERRIDE; |
| 83 virtual void OnDidEndEditing() OVERRIDE; | 85 virtual void OnDidEndEditing() OVERRIDE; |
| 84 virtual bool OnDoCommandBySelector(SEL cmd) OVERRIDE; | 86 virtual bool OnDoCommandBySelector(SEL cmd) OVERRIDE; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Was the delete key pressed with an empty selection at the end of the edit? | 182 // Was the delete key pressed with an empty selection at the end of the edit? |
| 181 bool delete_at_end_pressed_; | 183 bool delete_at_end_pressed_; |
| 182 | 184 |
| 183 // The maximum/standard line height for the displayed text. | 185 // The maximum/standard line height for the displayed text. |
| 184 CGFloat line_height_; | 186 CGFloat line_height_; |
| 185 | 187 |
| 186 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 188 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); |
| 187 }; | 189 }; |
| 188 | 190 |
| 189 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 191 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
| OLD | NEW |