| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 5 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 switch (type) { | 1438 switch (type) { |
| 1439 case chrome::NOTIFICATION_PREF_CHANGED: { | 1439 case chrome::NOTIFICATION_PREF_CHANGED: { |
| 1440 std::string* name = content::Details<std::string>(details).ptr(); | 1440 std::string* name = content::Details<std::string>(details).ptr(); |
| 1441 if (*name == prefs::kEditBookmarksEnabled) | 1441 if (*name == prefs::kEditBookmarksEnabled) |
| 1442 Update(NULL); | 1442 Update(NULL); |
| 1443 break; | 1443 break; |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 case chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED: { | 1446 case chrome::NOTIFICATION_EXTENSION_LOCATION_BAR_UPDATED: { |
| 1447 // Only update if the updated action box was for the active tab contents. | 1447 // Only update if the updated action box was for the active tab contents. |
| 1448 TabContents* target_tab = content::Details<TabContents>(details).ptr(); | 1448 WebContents* target_tab = content::Details<WebContents>(details).ptr(); |
| 1449 if (target_tab == GetTabContents()) | 1449 if (target_tab == GetTabContents()->web_contents()) |
| 1450 UpdatePageActions(); | 1450 UpdatePageActions(); |
| 1451 break; | 1451 break; |
| 1452 } | 1452 } |
| 1453 | 1453 |
| 1454 default: | 1454 default: |
| 1455 NOTREACHED() << "Unexpected notification."; | 1455 NOTREACHED() << "Unexpected notification."; |
| 1456 } | 1456 } |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 int LocationBarView::GetInternalHeight(bool use_preferred_size) { | 1459 int LocationBarView::GetInternalHeight(bool use_preferred_size) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 void LocationBarView::CleanupFadeAnimation() { | 1502 void LocationBarView::CleanupFadeAnimation() { |
| 1503 // Since we're no longer animating we don't need our layer. | 1503 // Since we're no longer animating we don't need our layer. |
| 1504 SetPaintToLayer(false); | 1504 SetPaintToLayer(false); |
| 1505 // Bubble labels don't need a transparent background anymore. | 1505 // Bubble labels don't need a transparent background anymore. |
| 1506 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1506 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
| 1507 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1507 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
| 1508 } | 1508 } |
| 1509 #endif // USE_AURA | 1509 #endif // USE_AURA |
| OLD | NEW |