| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 
| 7 | 7 | 
| 8 #include "ash/frame/header_painter.h" | 8 #include "ash/frame/header_painter.h" | 
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" | 
| 10 #include "base/compiler_specific.h"  // OVERRIDE | 10 #include "base/compiler_specific.h"  // OVERRIDE | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 42     views::View* window_icon, | 42     views::View* window_icon, | 
| 43     ash::FrameCaptionButtonContainerView* caption_button_container); | 43     ash::FrameCaptionButtonContainerView* caption_button_container); | 
| 44 | 44 | 
| 45   // ash::HeaderPainter overrides: | 45   // ash::HeaderPainter overrides: | 
| 46   virtual int GetMinimumHeaderWidth() const OVERRIDE; | 46   virtual int GetMinimumHeaderWidth() const OVERRIDE; | 
| 47   virtual void PaintHeader(gfx::Canvas* canvas, Mode mode) OVERRIDE; | 47   virtual void PaintHeader(gfx::Canvas* canvas, Mode mode) OVERRIDE; | 
| 48   virtual void LayoutHeader() OVERRIDE; | 48   virtual void LayoutHeader() OVERRIDE; | 
| 49   virtual int GetHeaderHeightForPainting() const OVERRIDE; | 49   virtual int GetHeaderHeightForPainting() const OVERRIDE; | 
| 50   virtual void SetHeaderHeightForPainting(int height) OVERRIDE; | 50   virtual void SetHeaderHeightForPainting(int height) OVERRIDE; | 
| 51   virtual void SchedulePaintForTitle() OVERRIDE; | 51   virtual void SchedulePaintForTitle() OVERRIDE; | 
|  | 52   virtual void UpdateLeftViewXInset(int left_view_x_inset) OVERRIDE; | 
| 52 | 53 | 
| 53  private: | 54  private: | 
| 54   // gfx::AnimationDelegate override: | 55   // gfx::AnimationDelegate override: | 
| 55   virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; | 56   virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; | 
| 56 | 57 | 
| 57   // Paints highlight around the edge of the header for restored windows. | 58   // Paints highlight around the edge of the header for restored windows. | 
| 58   void PaintHighlightForRestoredWindow(gfx::Canvas* canvas); | 59   void PaintHighlightForRestoredWindow(gfx::Canvas* canvas); | 
| 59 | 60 | 
| 60   // Paints the title bar, primarily the title string. | 61   // Paints the title bar, primarily the title string. | 
| 61   void PaintTitleBar(gfx::Canvas* canvas); | 62   void PaintTitleBar(gfx::Canvas* canvas); | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110 | 111 | 
| 111   // Whether the header should be painted as active. | 112   // Whether the header should be painted as active. | 
| 112   Mode mode_; | 113   Mode mode_; | 
| 113 | 114 | 
| 114   scoped_ptr<gfx::SlideAnimation> activation_animation_; | 115   scoped_ptr<gfx::SlideAnimation> activation_animation_; | 
| 115 | 116 | 
| 116   DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); | 117   DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); | 
| 117 }; | 118 }; | 
| 118 | 119 | 
| 119 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 120 #endif  // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 
| OLD | NEW | 
|---|