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/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 size_t count_before = page_action_views_.size(); | 442 size_t count_before = page_action_views_.size(); |
443 DeletePageActionViews(); | 443 DeletePageActionViews(); |
444 if (page_action_views_.size() != count_before) { | 444 if (page_action_views_.size() != count_before) { |
445 content::NotificationService::current()->Notify( | 445 content::NotificationService::current()->Notify( |
446 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 446 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
447 content::Source<LocationBar>(this), | 447 content::Source<LocationBar>(this), |
448 content::NotificationService::NoDetails()); | 448 content::NotificationService::NoDetails()); |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
| 452 void LocationBarView::UpdateWebIntentsButton() { |
| 453 // TODO(gbillock): implement this for views |
| 454 } |
| 455 |
452 void LocationBarView::OnFocus() { | 456 void LocationBarView::OnFocus() { |
453 // Focus the view widget first which implements accessibility for | 457 // Focus the view widget first which implements accessibility for |
454 // Chrome OS. It is noop on Win. This should be removed once | 458 // Chrome OS. It is noop on Win. This should be removed once |
455 // Chrome OS migrates to aura, which uses Views' textfield that receives | 459 // Chrome OS migrates to aura, which uses Views' textfield that receives |
456 // focus. See crbug.com/106428. | 460 // focus. See crbug.com/106428. |
457 GetWidget()->NotifyAccessibilityEvent( | 461 GetWidget()->NotifyAccessibilityEvent( |
458 this, ui::AccessibilityTypes::EVENT_FOCUS, false); | 462 this, ui::AccessibilityTypes::EVENT_FOCUS, false); |
459 | 463 |
460 // Then focus the native location view which implements accessibility for | 464 // Then focus the native location view which implements accessibility for |
461 // Windows. | 465 // Windows. |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 } | 1503 } |
1500 | 1504 |
1501 void LocationBarView::CleanupFadeAnimation() { | 1505 void LocationBarView::CleanupFadeAnimation() { |
1502 // Since we're no longer animating we don't need our layer. | 1506 // Since we're no longer animating we don't need our layer. |
1503 SetPaintToLayer(false); | 1507 SetPaintToLayer(false); |
1504 // Bubble labels don't need a transparent background anymore. | 1508 // Bubble labels don't need a transparent background anymore. |
1505 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1509 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
1506 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); | 1510 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); |
1507 } | 1511 } |
1508 #endif // USE_AURA | 1512 #endif // USE_AURA |
OLD | NEW |