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

Side by Side Diff: chrome/browser/ui/views/frame/browser_header_painter_ash.h

Issue 1505223004: Do not use assets for Ash window control button backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ash layout constants file added Created 5 years 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
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
Peter Kasting 2015/12/18 18:59:15 Nit: Wrap as close to 80 columns as possible
tdanderson 2016/01/04 23:11:15 Done.
85 void UpdateCaptionButtonImages(); 85 // and close 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698