| 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/compiler_specific.h" // override | 9 #include "base/compiler_specific.h" // override |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // for tabbed browser windows. | 74 // for tabbed browser windows. |
| 75 void GetFrameImagesForTabbedBrowser( | 75 void GetFrameImagesForTabbedBrowser( |
| 76 Mode mode, | 76 Mode mode, |
| 77 gfx::ImageSkia* frame_image, | 77 gfx::ImageSkia* frame_image, |
| 78 gfx::ImageSkia* frame_overlay_image) const; | 78 gfx::ImageSkia* frame_overlay_image) const; |
| 79 | 79 |
| 80 // Returns the frame image which should be used to paint the header for popup | 80 // Returns the frame image which should be used to paint the header for popup |
| 81 // browser windows and for hosted app windows which show the toolbar. | 81 // browser windows and for hosted app windows which show the toolbar. |
| 82 gfx::ImageSkia GetFrameImageForNonTabbedBrowser(Mode mode) const; | 82 gfx::ImageSkia GetFrameImageForNonTabbedBrowser(Mode mode) const; |
| 83 | 83 |
| 84 // Updates the images used for the minimize, restore and close buttons. | 84 // Updates the size and icons used for the minimize, restore, and close |
| 85 void UpdateCaptionButtonImages(); | 85 // buttons. |
| 86 void UpdateCaptionButtons(); |
| 86 | 87 |
| 87 // Returns bounds of the region in |view_| which is painted with the header | 88 // Returns bounds of the region in |view_| which is painted with the header |
| 88 // images. The region is assumed to start at the top left corner of |view_| | 89 // images. The region is assumed to start at the top left corner of |view_| |
| 89 // and to have the same width as |view_|. | 90 // and to have the same width as |view_|. |
| 90 gfx::Rect GetPaintedBounds() const; | 91 gfx::Rect GetPaintedBounds() const; |
| 91 | 92 |
| 92 // Returns the bounds for the title. | 93 // Returns the bounds for the title. |
| 93 gfx::Rect GetTitleBounds() const; | 94 gfx::Rect GetTitleBounds() const; |
| 94 | 95 |
| 95 views::Widget* frame_; | 96 views::Widget* frame_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 113 | 114 |
| 114 // Whether the header should be painted as active. | 115 // Whether the header should be painted as active. |
| 115 Mode mode_; | 116 Mode mode_; |
| 116 | 117 |
| 117 scoped_ptr<gfx::SlideAnimation> activation_animation_; | 118 scoped_ptr<gfx::SlideAnimation> activation_animation_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); | 120 DISALLOW_COPY_AND_ASSIGN(BrowserHeaderPainterAsh); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_HEADER_PAINTER_ASH_H_ |
| OLD | NEW |