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_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual std::wstring GetInputString() const; | 33 virtual std::wstring GetInputString() const; |
34 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 34 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
35 virtual PageTransition::Type GetPageTransition() const; | 35 virtual PageTransition::Type GetPageTransition() const; |
36 virtual void AcceptInput() { NOTIMPLEMENTED(); } | 36 virtual void AcceptInput() { NOTIMPLEMENTED(); } |
37 virtual void AcceptInputWithDisposition(WindowOpenDisposition disposition) | 37 virtual void AcceptInputWithDisposition(WindowOpenDisposition disposition) |
38 { NOTIMPLEMENTED(); } | 38 { NOTIMPLEMENTED(); } |
39 virtual void FocusLocation(); | 39 virtual void FocusLocation(); |
40 virtual void FocusSearch() { NOTIMPLEMENTED(); } | 40 virtual void FocusSearch() { NOTIMPLEMENTED(); } |
41 virtual void UpdateFeedIcon() { /* http://crbug.com/8832 */ } | 41 virtual void UpdateFeedIcon() { /* http://crbug.com/8832 */ } |
42 virtual void SaveStateToContents(TabContents* contents); | 42 virtual void SaveStateToContents(TabContents* contents); |
| 43 virtual void Revert(); |
43 | 44 |
44 virtual void OnAutocompleteAccept(const GURL& url, | 45 virtual void OnAutocompleteAccept(const GURL& url, |
45 WindowOpenDisposition disposition, | 46 WindowOpenDisposition disposition, |
46 PageTransition::Type transition, | 47 PageTransition::Type transition, |
47 const GURL& alternate_nav_url); | 48 const GURL& alternate_nav_url); |
48 virtual void OnChanged(); | 49 virtual void OnChanged(); |
49 virtual void OnInputInProgress(bool in_progress); | 50 virtual void OnInputInProgress(bool in_progress); |
50 virtual SkBitmap GetFavIcon() const; | 51 virtual SkBitmap GetFavIcon() const; |
51 virtual std::wstring GetTitle() const; | 52 virtual std::wstring GetTitle() const; |
52 | 53 |
(...skipping 10 matching lines...) Expand all Loading... |
63 // The user's desired disposition for how their input should be opened | 64 // The user's desired disposition for how their input should be opened |
64 WindowOpenDisposition disposition_; | 65 WindowOpenDisposition disposition_; |
65 | 66 |
66 // The transition type to use for the navigation | 67 // The transition type to use for the navigation |
67 PageTransition::Type transition_; | 68 PageTransition::Type transition_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 70 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
70 }; | 71 }; |
71 | 72 |
72 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ | 73 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |