OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 211 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
212 content::Source<LocationBar>(this), | 212 content::Source<LocationBar>(this), |
213 content::NotificationService::NoDetails()); | 213 content::NotificationService::NoDetails()); |
214 } | 214 } |
215 } | 215 } |
216 | 216 |
217 void LocationBarViewMac::UpdateOpenPDFInReaderPrompt() { | 217 void LocationBarViewMac::UpdateOpenPDFInReaderPrompt() { |
218 // Not implemented on Mac. | 218 // Not implemented on Mac. |
219 } | 219 } |
220 | 220 |
221 void LocationBarViewMac::UpdateAutofillCreditCardView() { | 221 void LocationBarViewMac::UpdateGeneratedCreditCardView() { |
222 // TODO(dbeam): encourage groby@ to implement via prodding or chocolate. | 222 // TODO(dbeam): encourage groby@ to implement via prodding or chocolate. |
223 NOTIMPLEMENTED(); | 223 NOTIMPLEMENTED(); |
224 } | 224 } |
225 | 225 |
226 void LocationBarViewMac::SaveStateToContents(WebContents* contents) { | 226 void LocationBarViewMac::SaveStateToContents(WebContents* contents) { |
227 // TODO(shess): Why SaveStateToContents vs SaveStateToTab? | 227 // TODO(shess): Why SaveStateToContents vs SaveStateToTab? |
228 omnibox_view_->SaveStateToTab(contents); | 228 omnibox_view_->SaveStateToTab(contents); |
229 } | 229 } |
230 | 230 |
231 void LocationBarViewMac::Update(const WebContents* contents, | 231 void LocationBarViewMac::Update(const WebContents* contents, |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 WebContents* web_contents = GetWebContents(); | 717 WebContents* web_contents = GetWebContents(); |
718 if (!web_contents) | 718 if (!web_contents) |
719 return; | 719 return; |
720 | 720 |
721 zoom_decoration_->Update(ZoomController::FromWebContents(web_contents)); | 721 zoom_decoration_->Update(ZoomController::FromWebContents(web_contents)); |
722 } | 722 } |
723 | 723 |
724 void LocationBarViewMac::UpdateStarDecorationVisibility() { | 724 void LocationBarViewMac::UpdateStarDecorationVisibility() { |
725 star_decoration_->SetVisible(IsStarEnabled()); | 725 star_decoration_->SetVisible(IsStarEnabled()); |
726 } | 726 } |
OLD | NEW |