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

Side by Side Diff: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc

Issue 10944016: Switch SearchTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const Created 8 years, 3 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/ash/browser_non_client_frame_view_ash.h" 5 #include "chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h"
6 6
7 #include "ash/wm/frame_painter.h" 7 #include "ash/wm/frame_painter.h"
8 #include "ash/wm/workspace/frame_maximize_button.h" 8 #include "ash/wm/workspace/frame_maximize_button.h"
9 #include "chrome/browser/themes/theme_service.h" 9 #include "chrome/browser/themes/theme_service.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 /////////////////////////////////////////////////////////////////////////////// 405 ///////////////////////////////////////////////////////////////////////////////
406 // chrome::search::ToolbarSearchAnimator::Observer overrides: 406 // chrome::search::ToolbarSearchAnimator::Observer overrides:
407 407
408 void BrowserNonClientFrameViewAsh::OnToolbarBackgroundAnimatorProgressed() { 408 void BrowserNonClientFrameViewAsh::OnToolbarBackgroundAnimatorProgressed() {
409 // We're fading in the toolbar background, repaint the toolbar background. 409 // We're fading in the toolbar background, repaint the toolbar background.
410 browser_view()->toolbar()->SchedulePaint(); 410 browser_view()->toolbar()->SchedulePaint();
411 } 411 }
412 412
413 void BrowserNonClientFrameViewAsh::OnToolbarBackgroundAnimatorCanceled( 413 void BrowserNonClientFrameViewAsh::OnToolbarBackgroundAnimatorCanceled(
414 TabContents* tab_contents) { 414 content::WebContents* web_contents) {
415 // Fade in of toolbar background has been canceled, repaint the toolbar 415 // Fade in of toolbar background has been canceled, repaint the toolbar
416 // background. 416 // background.
417 browser_view()->toolbar()->SchedulePaint(); 417 browser_view()->toolbar()->SchedulePaint();
418 } 418 }
419 419
420 void BrowserNonClientFrameViewAsh::OnToolbarSeparatorChanged() { 420 void BrowserNonClientFrameViewAsh::OnToolbarSeparatorChanged() {
421 // Omnibox popup has finished closing, paint the toolbar separator. 421 // Omnibox popup has finished closing, paint the toolbar separator.
422 browser_view()->toolbar()->SchedulePaint(); 422 browser_view()->toolbar()->SchedulePaint();
423 } 423 }
424 424
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 BrowserNonClientFrameViewAsh::GetThemeFrameOverlayImage() const { 599 BrowserNonClientFrameViewAsh::GetThemeFrameOverlayImage() const {
600 ui::ThemeProvider* tp = GetThemeProvider(); 600 ui::ThemeProvider* tp = GetThemeProvider();
601 if (tp->HasCustomImage(IDR_THEME_FRAME_OVERLAY) && 601 if (tp->HasCustomImage(IDR_THEME_FRAME_OVERLAY) &&
602 browser_view()->IsBrowserTypeNormal() && 602 browser_view()->IsBrowserTypeNormal() &&
603 !browser_view()->IsOffTheRecord()) { 603 !browser_view()->IsOffTheRecord()) {
604 return tp->GetImageSkiaNamed(ShouldPaintAsActive() ? 604 return tp->GetImageSkiaNamed(ShouldPaintAsActive() ?
605 IDR_THEME_FRAME_OVERLAY : IDR_THEME_FRAME_OVERLAY_INACTIVE); 605 IDR_THEME_FRAME_OVERLAY : IDR_THEME_FRAME_OVERLAY_INACTIVE);
606 } 606 }
607 return NULL; 607 return NULL;
608 } 608 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h ('k') | chrome/browser/ui/views/search_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698