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

Side by Side Diff: chrome/browser/ui/views/download/download_shelf_view.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 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 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_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Sent from the DownloadItemView when the user opens an item. 49 // Sent from the DownloadItemView when the user opens an item.
50 void OpenedDownload(DownloadItemView* view); 50 void OpenedDownload(DownloadItemView* view);
51 51
52 // Implementation of View. 52 // Implementation of View.
53 virtual gfx::Size GetPreferredSize() OVERRIDE; 53 virtual gfx::Size GetPreferredSize() OVERRIDE;
54 virtual void Layout() OVERRIDE; 54 virtual void Layout() OVERRIDE;
55 virtual void ViewHierarchyChanged(bool is_add, 55 virtual void ViewHierarchyChanged(bool is_add,
56 View* parent, 56 View* parent,
57 View* child) OVERRIDE; 57 View* child) OVERRIDE;
58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 58 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE;
59 59
60 // Implementation of ui::AnimationDelegate. 60 // Implementation of ui::AnimationDelegate.
61 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 61 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
62 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 62 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
63 63
64 // Implementation of views::LinkListener. 64 // Implementation of views::LinkListener.
65 // Invoked when the user clicks the 'show all downloads' link button. 65 // Invoked when the user clicks the 'show all downloads' link button.
66 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 66 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
67 67
68 // Implementation of ButtonListener. 68 // Implementation of ButtonListener.
(...skipping 29 matching lines...) Expand all
98 // From AccessiblePaneView 98 // From AccessiblePaneView
99 virtual views::View* GetDefaultFocusableChild() OVERRIDE; 99 virtual views::View* GetDefaultFocusableChild() OVERRIDE;
100 100
101 private: 101 private:
102 // Adds a View representing a download to this DownloadShelfView. 102 // Adds a View representing a download to this DownloadShelfView.
103 // DownloadShelfView takes ownership of the View, and will delete it as 103 // DownloadShelfView takes ownership of the View, and will delete it as
104 // necessary. 104 // necessary.
105 void AddDownloadView(DownloadItemView* view); 105 void AddDownloadView(DownloadItemView* view);
106 106
107 // Paints the border. 107 // Paints the border.
108 virtual void OnPaintBorder(gfx::Canvas* canvas) OVERRIDE; 108 virtual void OnPaintBorder(gfx::CanvasSkia* canvas) OVERRIDE;
109 109
110 // Returns true if the shelf is wide enough to show the first download item. 110 // Returns true if the shelf is wide enough to show the first download item.
111 bool CanFitFirstDownloadItem(); 111 bool CanFitFirstDownloadItem();
112 112
113 // Called on theme change. 113 // Called on theme change.
114 void UpdateButtonColors(); 114 void UpdateButtonColors();
115 115
116 // Overridden from views::View. 116 // Overridden from views::View.
117 virtual void OnThemeChanged() OVERRIDE; 117 virtual void OnThemeChanged() OVERRIDE;
118 118
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Whether we are auto-closing. 162 // Whether we are auto-closing.
163 bool auto_closed_; 163 bool auto_closed_;
164 164
165 views::MouseWatcher mouse_watcher_; 165 views::MouseWatcher mouse_watcher_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 167 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
168 }; 168 };
169 169
170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 170 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698