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

Unified Diff: ash/common/frame/caption_buttons/frame_caption_button.h

Issue 2760133002: ui: Remove a bunch of uses of gfx::Canvas::ExtractImageRep() (Closed)
Patch Set: canvasbounds: ashnit Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/accelerators/debug_commands.cc ('k') | ash/common/frame/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/caption_buttons/frame_caption_button.h
diff --git a/ash/common/frame/caption_buttons/frame_caption_button.h b/ash/common/frame/caption_buttons/frame_caption_button.h
index 8b6df285b534eeb44c82a17b119ee615cb0d75eb..7437278a0f2692305d46ed103efe8e128689456b 100644
--- a/ash/common/frame/caption_buttons/frame_caption_button.h
+++ b/ash/common/frame/caption_buttons/frame_caption_button.h
@@ -66,10 +66,9 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
void OnGestureEvent(ui::GestureEvent* event) override;
private:
- // Paints |to_center| centered within the button with |alpha|.
- void PaintCentered(gfx::Canvas* canvas,
- const gfx::ImageSkia& to_center,
- int alpha);
+ // Determines what alpha to use for the icon based on animation and
+ // active state.
+ int GetAlphaForIcon(int base_alpha) const;
// The button's current icon.
CaptionButtonIcon icon_;
« no previous file with comments | « ash/common/accelerators/debug_commands.cc ('k') | ash/common/frame/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698