| 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 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void SetGrayTextAutocompletion(const base::string16& input) override; | 85 void SetGrayTextAutocompletion(const base::string16& input) override; |
| 86 base::string16 GetGrayTextAutocompletion() const override; | 86 base::string16 GetGrayTextAutocompletion() const override; |
| 87 int GetTextWidth() const override; | 87 int GetTextWidth() const override; |
| 88 int GetWidth() const override; | 88 int GetWidth() const override; |
| 89 bool IsImeComposing() const override; | 89 bool IsImeComposing() const override; |
| 90 | 90 |
| 91 // Implement the AutocompleteTextFieldObserver interface. | 91 // Implement the AutocompleteTextFieldObserver interface. |
| 92 NSRange SelectionRangeForProposedRange(NSRange proposed_range) override; | 92 NSRange SelectionRangeForProposedRange(NSRange proposed_range) override; |
| 93 void OnControlKeyChanged(bool pressed) override; | 93 void OnControlKeyChanged(bool pressed) override; |
| 94 bool CanCopy() override; | 94 bool CanCopy() override; |
| 95 base::scoped_nsobject<NSPasteboardItem> CreatePasteboardItem() override; |
| 95 void CopyToPasteboard(NSPasteboard* pboard) override; | 96 void CopyToPasteboard(NSPasteboard* pboard) override; |
| 96 bool ShouldEnableShowURL() override; | 97 bool ShouldEnableShowURL() override; |
| 97 void ShowURL() override; | 98 void ShowURL() override; |
| 98 void OnPaste() override; | 99 void OnPaste() override; |
| 99 bool CanPasteAndGo() override; | 100 bool CanPasteAndGo() override; |
| 100 int GetPasteActionStringId() override; | 101 int GetPasteActionStringId() override; |
| 101 void OnPasteAndGo() override; | 102 void OnPasteAndGo() override; |
| 102 void OnFrameChanged() override; | 103 void OnFrameChanged() override; |
| 103 void ClosePopup() override; | 104 void ClosePopup() override; |
| 104 void OnDidBeginEditing() override; | 105 void OnDidBeginEditing() override; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 NSRange coalesced_range_update_; | 224 NSRange coalesced_range_update_; |
| 224 | 225 |
| 225 // The time of the first character insert operation that has not yet been | 226 // The time of the first character insert operation that has not yet been |
| 226 // painted. Used to measure omnibox responsiveness with a histogram. | 227 // painted. Used to measure omnibox responsiveness with a histogram. |
| 227 base::TimeTicks insert_char_time_; | 228 base::TimeTicks insert_char_time_; |
| 228 | 229 |
| 229 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 230 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); |
| 230 }; | 231 }; |
| 231 | 232 |
| 232 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 233 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
| OLD | NEW |