OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool update_popup) OVERRIDE; | 59 bool update_popup) OVERRIDE; |
60 | 60 |
61 virtual void SetWindowTextAndCaretPos(const string16& text, | 61 virtual void SetWindowTextAndCaretPos(const string16& text, |
62 size_t caret_pos) OVERRIDE; | 62 size_t caret_pos) OVERRIDE; |
63 | 63 |
64 virtual void SetForcedQuery() OVERRIDE; | 64 virtual void SetForcedQuery() OVERRIDE; |
65 | 65 |
66 virtual bool IsSelectAll() OVERRIDE; | 66 virtual bool IsSelectAll() OVERRIDE; |
67 virtual bool DeleteAtEndPressed() OVERRIDE; | 67 virtual bool DeleteAtEndPressed() OVERRIDE; |
68 virtual void GetSelectionBounds(string16::size_type* start, | 68 virtual void GetSelectionBounds(string16::size_type* start, |
69 string16::size_type* end) OVERRIDE; | 69 string16::size_type* end) const OVERRIDE; |
70 | 70 |
71 virtual void SelectAll(bool reversed) OVERRIDE; | 71 virtual void SelectAll(bool reversed) OVERRIDE; |
72 virtual void RevertAll() OVERRIDE; | 72 virtual void RevertAll() OVERRIDE; |
73 virtual void UpdatePopup() OVERRIDE; | 73 virtual void UpdatePopup() OVERRIDE; |
74 virtual void ClosePopup() OVERRIDE; | 74 virtual void ClosePopup() OVERRIDE; |
75 virtual void SetFocus() OVERRIDE; | 75 virtual void SetFocus() OVERRIDE; |
76 virtual void OnTemporaryTextMaybeChanged( | 76 virtual void OnTemporaryTextMaybeChanged( |
77 const string16& display_text, | 77 const string16& display_text, |
78 bool save_original_selection) OVERRIDE; | 78 bool save_original_selection) OVERRIDE; |
79 virtual bool OnInlineAutocompleteTextMaybeChanged( | 79 virtual bool OnInlineAutocompleteTextMaybeChanged( |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // Was the delete key pressed with an empty selection at the end of the edit? | 219 // Was the delete key pressed with an empty selection at the end of the edit? |
220 bool delete_at_end_pressed_; | 220 bool delete_at_end_pressed_; |
221 | 221 |
222 // The maximum/standard line height for the displayed text. | 222 // The maximum/standard line height for the displayed text. |
223 CGFloat line_height_; | 223 CGFloat line_height_; |
224 | 224 |
225 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); | 225 DISALLOW_COPY_AND_ASSIGN(OmniboxViewMac); |
226 }; | 226 }; |
227 | 227 |
228 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ | 228 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_ |
OLD | NEW |