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_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // security style, and if |should_restore_state| is true, restores | 61 // security style, and if |should_restore_state| is true, restores |
62 // saved state from the tab (for tab switching). | 62 // saved state from the tab (for tab switching). |
63 void Update(const TabContents* tab, bool should_restore_state); | 63 void Update(const TabContents* tab, bool should_restore_state); |
64 | 64 |
65 virtual void OnAutocompleteAccept(const GURL& url, | 65 virtual void OnAutocompleteAccept(const GURL& url, |
66 WindowOpenDisposition disposition, | 66 WindowOpenDisposition disposition, |
67 PageTransition::Type transition, | 67 PageTransition::Type transition, |
68 const GURL& alternate_nav_url); | 68 const GURL& alternate_nav_url); |
69 virtual void OnChanged(); | 69 virtual void OnChanged(); |
70 virtual void OnInputInProgress(bool in_progress); | 70 virtual void OnInputInProgress(bool in_progress); |
| 71 virtual void OnKillFocus(); |
71 virtual void OnSetFocus(); | 72 virtual void OnSetFocus(); |
72 virtual SkBitmap GetFavIcon() const; | 73 virtual SkBitmap GetFavIcon() const; |
73 virtual std::wstring GetTitle() const; | 74 virtual std::wstring GetTitle() const; |
74 | 75 |
75 NSImage* GetTabButtonImage(); | 76 NSImage* GetTabButtonImage(); |
76 | 77 |
77 // Internals of OnChanged(), pulled out for purposes of unit | 78 // Internals of OnChanged(), pulled out for purposes of unit |
78 // testing. Sets up |field| based on the parameters, which are | 79 // testing. Sets up |field| based on the parameters, which are |
79 // pulled from edit_view->model(). | 80 // pulled from edit_view->model(). |
80 static void OnChangedImpl(AutocompleteTextField* field, | 81 static void OnChangedImpl(AutocompleteTextField* field, |
(...skipping 28 matching lines...) Expand all Loading... |
109 // Image used in drawing keyword hint. | 110 // Image used in drawing keyword hint. |
110 scoped_nsobject<NSImage> tab_button_image_; | 111 scoped_nsobject<NSImage> tab_button_image_; |
111 | 112 |
112 // The transition type to use for the navigation. | 113 // The transition type to use for the navigation. |
113 PageTransition::Type transition_; | 114 PageTransition::Type transition_; |
114 | 115 |
115 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 116 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
116 }; | 117 }; |
117 | 118 |
118 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 119 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |