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

Side by Side Diff: chrome/browser/views/toolbar_view.cc

Issue 2878072: Merge 53736 - Make theme change notifications auto-propagate through the view... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/views/toolbar_view.h ('k') | views/view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/views/toolbar_view.h" 5 #include "chrome/browser/views/toolbar_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 width() - kPopupBackgroundEdge->width(), top_spacing); 518 width() - kPopupBackgroundEdge->width(), top_spacing);
519 } 519 }
520 520
521 // For glass, we need to draw a black line below the location bar to separate 521 // For glass, we need to draw a black line below the location bar to separate
522 // it from the content area. For non-glass, the NonClientView draws the 522 // it from the content area. For non-glass, the NonClientView draws the
523 // toolbar background below the location bar for us. 523 // toolbar background below the location bar for us.
524 if (GetWindow()->GetNonClientView()->UseNativeFrame()) 524 if (GetWindow()->GetNonClientView()->UseNativeFrame())
525 canvas->FillRectInt(SK_ColorBLACK, 0, height() - 1, width(), 1); 525 canvas->FillRectInt(SK_ColorBLACK, 0, height() - 1, width(), 1);
526 } 526 }
527 527
528 void ToolbarView::ThemeChanged() { 528 void ToolbarView::OnThemeChanged() {
529 LoadImages(); 529 LoadImages();
530 } 530 }
531 531
532 //////////////////////////////////////////////////////////////////////////////// 532 ////////////////////////////////////////////////////////////////////////////////
533 // ToolbarView, protected: 533 // ToolbarView, protected:
534 534
535 // Override this so that when the user presses F6 to rotate toolbar panes, 535 // Override this so that when the user presses F6 to rotate toolbar panes,
536 // the location bar gets focus, not the first control in the toolbar. 536 // the location bar gets focus, not the first control in the toolbar.
537 views::View* ToolbarView::GetDefaultFocusableChild() { 537 views::View* ToolbarView::GetDefaultFocusableChild() {
538 return location_bar_; 538 return location_bar_;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 } 682 }
683 #endif 683 #endif
684 684
685 // Tell the menu button to activate, opening its pop-up menu. 685 // Tell the menu button to activate, opening its pop-up menu.
686 menu_button->Activate(); 686 menu_button->Activate();
687 687
688 #if defined(OS_WIN) 688 #if defined(OS_WIN)
689 SetToolbarFocus(NULL, menu_button); 689 SetToolbarFocus(NULL, menu_button);
690 #endif 690 #endif
691 } 691 }
OLDNEW
« no previous file with comments | « chrome/browser/views/toolbar_view.h ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698