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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 10796116: [Web Intents] Basic location bar UI for window disposition picker affordance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add LocationBar method to test mock. Created 8 years, 4 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) 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 size_t count_before = page_action_views_.size(); 445 size_t count_before = page_action_views_.size();
446 DeletePageActionViews(); 446 DeletePageActionViews();
447 if (page_action_views_.size() != count_before) { 447 if (page_action_views_.size() != count_before) {
448 content::NotificationService::current()->Notify( 448 content::NotificationService::current()->Notify(
449 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, 449 chrome::NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED,
450 content::Source<LocationBar>(this), 450 content::Source<LocationBar>(this),
451 content::NotificationService::NoDetails()); 451 content::NotificationService::NoDetails());
452 } 452 }
453 } 453 }
454 454
455 void LocationBarView::UpdateWebIntentsButton() {
456 // TODO(gbillock): implement this for views
457 }
458
455 void LocationBarView::OnFocus() { 459 void LocationBarView::OnFocus() {
456 // Focus the view widget first which implements accessibility for 460 // Focus the view widget first which implements accessibility for
457 // Chrome OS. It is noop on Win. This should be removed once 461 // Chrome OS. It is noop on Win. This should be removed once
458 // Chrome OS migrates to aura, which uses Views' textfield that receives 462 // Chrome OS migrates to aura, which uses Views' textfield that receives
459 // focus. See crbug.com/106428. 463 // focus. See crbug.com/106428.
460 GetWidget()->NotifyAccessibilityEvent( 464 GetWidget()->NotifyAccessibilityEvent(
461 this, ui::AccessibilityTypes::EVENT_FOCUS, false); 465 this, ui::AccessibilityTypes::EVENT_FOCUS, false);
462 466
463 // Then focus the native location view which implements accessibility for 467 // Then focus the native location view which implements accessibility for
464 // Windows. 468 // Windows.
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 } 1504 }
1501 1505
1502 void LocationBarView::CleanupFadeAnimation() { 1506 void LocationBarView::CleanupFadeAnimation() {
1503 // Since we're no longer animating we don't need our layer. 1507 // Since we're no longer animating we don't need our layer.
1504 SetPaintToLayer(false); 1508 SetPaintToLayer(false);
1505 // Bubble labels don't need a transparent background anymore. 1509 // Bubble labels don't need a transparent background anymore.
1506 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE); 1510 ev_bubble_view_->SetLabelBackgroundColor(SK_ColorWHITE);
1507 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE); 1511 selected_keyword_view_->SetLabelBackgroundColor(SK_ColorWHITE);
1508 } 1512 }
1509 #endif // USE_AURA 1513 #endif // USE_AURA
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.h ('k') | chrome/test/base/test_location_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698