Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 6546073: More OOLing on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yeap Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual WindowOpenDisposition GetWindowOpenDisposition() const; 59 virtual WindowOpenDisposition GetWindowOpenDisposition() const;
60 virtual PageTransition::Type GetPageTransition() const; 60 virtual PageTransition::Type GetPageTransition() const;
61 virtual void AcceptInput(); 61 virtual void AcceptInput();
62 virtual void FocusLocation(bool select_all); 62 virtual void FocusLocation(bool select_all);
63 virtual void FocusSearch(); 63 virtual void FocusSearch();
64 virtual void UpdateContentSettingsIcons(); 64 virtual void UpdateContentSettingsIcons();
65 virtual void UpdatePageActions(); 65 virtual void UpdatePageActions();
66 virtual void InvalidatePageActions(); 66 virtual void InvalidatePageActions();
67 virtual void SaveStateToContents(TabContents* contents); 67 virtual void SaveStateToContents(TabContents* contents);
68 virtual void Revert(); 68 virtual void Revert();
69 virtual const AutocompleteEditView* location_entry() const { 69 virtual const AutocompleteEditView* location_entry() const;
70 return edit_view_.get(); 70 virtual AutocompleteEditView* location_entry();
71 } 71 virtual LocationBarTesting* GetLocationBarForTesting();
72 virtual AutocompleteEditView* location_entry() {
73 return edit_view_.get();
74 }
75 virtual LocationBarTesting* GetLocationBarForTesting() { return this; }
76 72
77 // Overridden from LocationBarTesting: 73 // Overridden from LocationBarTesting:
78 virtual int PageActionCount(); 74 virtual int PageActionCount();
79 virtual int PageActionVisibleCount(); 75 virtual int PageActionVisibleCount();
80 virtual ExtensionAction* GetPageAction(size_t index); 76 virtual ExtensionAction* GetPageAction(size_t index);
81 virtual ExtensionAction* GetVisiblePageAction(size_t index); 77 virtual ExtensionAction* GetVisiblePageAction(size_t index);
82 virtual void TestPageActionPressed(size_t index); 78 virtual void TestPageActionPressed(size_t index);
83 79
84 // Set/Get the editable state of the field. 80 // Set/Get the editable state of the field.
85 void SetEditable(bool editable); 81 void SetEditable(bool editable);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Used to register for notifications received by NotificationObserver. 224 // Used to register for notifications received by NotificationObserver.
229 NotificationRegistrar registrar_; 225 NotificationRegistrar registrar_;
230 226
231 // Used to schedule a task for the first run info bubble. 227 // Used to schedule a task for the first run info bubble.
232 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; 228 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_;
233 229
234 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 230 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
235 }; 231 };
236 232
237 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_ 233 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698