| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool save_original_selection, | 82 bool save_original_selection, |
| 83 bool notify_text_changed) override; | 83 bool notify_text_changed) override; |
| 84 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, | 84 bool OnInlineAutocompleteTextMaybeChanged(const base::string16& display_text, |
| 85 size_t user_text_length) override; | 85 size_t user_text_length) override; |
| 86 void OnInlineAutocompleteTextCleared() override; | 86 void OnInlineAutocompleteTextCleared() override; |
| 87 void OnRevertTemporaryText() override; | 87 void OnRevertTemporaryText() override; |
| 88 void OnBeforePossibleChange() override; | 88 void OnBeforePossibleChange() override; |
| 89 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; | 89 bool OnAfterPossibleChange(bool allow_keyword_ui_change) override; |
| 90 gfx::NativeView GetNativeView() const override; | 90 gfx::NativeView GetNativeView() const override; |
| 91 gfx::NativeView GetRelativeWindowForPopup() const override; | 91 gfx::NativeView GetRelativeWindowForPopup() const override; |
| 92 void SetGrayTextAutocompletion(const base::string16& input) override; | |
| 93 base::string16 GetGrayTextAutocompletion() const override; | |
| 94 int GetTextWidth() const override; | 92 int GetTextWidth() const override; |
| 95 int GetWidth() const override; | 93 int GetWidth() const override; |
| 96 bool IsImeComposing() const override; | 94 bool IsImeComposing() const override; |
| 97 | 95 |
| 98 // Implement the AutocompleteTextFieldObserver interface. | 96 // Implement the AutocompleteTextFieldObserver interface. |
| 99 NSRange SelectionRangeForProposedRange(NSRange proposed_range) override; | 97 NSRange SelectionRangeForProposedRange(NSRange proposed_range) override; |
| 100 void OnControlKeyChanged(bool pressed) override; | 98 void OnControlKeyChanged(bool pressed) override; |
| 101 bool CanCopy() override; | 99 bool CanCopy() override; |
| 102 base::scoped_nsobject<NSPasteboardItem> CreatePasteboardItem() override; | 100 base::scoped_nsobject<NSPasteboardItem> CreatePasteboardItem() override; |
| 103 void CopyToPasteboard(NSPasteboard* pboard) override; | 101 void CopyToPasteboard(NSPasteboard* pboard) override; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // painted. Used to measure omnibox responsiveness with a histogram. | 231 // painted. Used to measure omnibox responsiveness with a histogram. |
| 234 base::TimeTicks insert_char_time_; | 232 base::TimeTicks insert_char_time_; |
| 235 | 233 |
| 236 // The time when OnBeforeDrawRect() was called. | 234 // The time when OnBeforeDrawRect() was called. |
| 237 base::TimeTicks draw_rect_start_time_; | 235 base::TimeTicks draw_rect_start_time_; |
| 238 | 236 |
| 239 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 237 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); |
| 240 }; | 238 }; |
| 241 | 239 |
| 242 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 240 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
| OLD | NEW |