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

Side by Side Diff: chrome/browser/ui/views/dropdown_bar_view.h

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/dropdown_bar_host.h" 9 #include "chrome/browser/ui/views/dropdown_bar_host.h"
10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" 10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
(...skipping 25 matching lines...) Expand all
36 36
37 protected: 37 protected:
38 // views::View: 38 // views::View:
39 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 39 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
40 40
41 // Returns the DropdownBarHost that manages this view. 41 // Returns the DropdownBarHost that manages this view.
42 DropdownBarHost* host() const { return host_; } 42 DropdownBarHost* host() const { return host_; }
43 43
44 void SetBackground(const gfx::ImageSkia* left_alpha_mask, 44 void SetBackground(const gfx::ImageSkia* left_alpha_mask,
45 const gfx::ImageSkia* right_alpha_mask); 45 const gfx::ImageSkia* right_alpha_mask);
46 void SetBorder(int left_border_bitmap_id, int middle_border_bitmap_id, 46 void SetBorder(int left_border_image_id, int middle_border_image_id,
47 int right_border_bitmap_id); 47 int right_border_image_id);
48 48
49 private: 49 private:
50 // The dropdown bar host that controls this view. 50 // The dropdown bar host that controls this view.
51 DropdownBarHost* host_; 51 DropdownBarHost* host_;
52 52
53 // While animating, the host clips the widget and draws only the bottom 53 // While animating, the host clips the widget and draws only the bottom
54 // part of it. The view needs to know the pixel offset at which we are drawing 54 // part of it. The view needs to know the pixel offset at which we are drawing
55 // the widget so that we can draw the curved edges that attach to the toolbar 55 // the widget so that we can draw the curved edges that attach to the toolbar
56 // in the right location. 56 // in the right location.
57 int animation_offset_; 57 int animation_offset_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(DropdownBarView); 59 DISALLOW_COPY_AND_ASSIGN(DropdownBarView);
60 }; 60 };
61 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_ 61 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/dropdown_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698