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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void OpenedDownload(DownloadItemView* view); 53 void OpenedDownload(DownloadItemView* view);
54 54
55 // Returns the relevant containing object that can load pages. 55 // Returns the relevant containing object that can load pages.
56 // i.e. the |browser_|. 56 // i.e. the |browser_|.
57 content::PageNavigator* GetNavigator(); 57 content::PageNavigator* GetNavigator();
58 58
59 // Returns the parent_. 59 // Returns the parent_.
60 BrowserView* get_parent() { return parent_; } 60 BrowserView* get_parent() { return parent_; }
61 61
62 // Implementation of View. 62 // Implementation of View.
63 virtual gfx::Size GetPreferredSize() OVERRIDE; 63 virtual gfx::Size GetPreferredSize() const OVERRIDE;
64 virtual void Layout() OVERRIDE; 64 virtual void Layout() OVERRIDE;
65 virtual void ViewHierarchyChanged( 65 virtual void ViewHierarchyChanged(
66 const ViewHierarchyChangedDetails& details) OVERRIDE; 66 const ViewHierarchyChangedDetails& details) OVERRIDE;
67 67
68 // Implementation of gfx::AnimationDelegate. 68 // Implementation of gfx::AnimationDelegate.
69 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 69 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
70 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 70 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
71 71
72 // Implementation of views::LinkListener. 72 // Implementation of views::LinkListener.
73 // Invoked when the user clicks the 'show all downloads' link button. 73 // Invoked when the user clicks the 'show all downloads' link button.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 // The window this shelf belongs to. 152 // The window this shelf belongs to.
153 BrowserView* parent_; 153 BrowserView* parent_;
154 154
155 views::MouseWatcher mouse_watcher_; 155 views::MouseWatcher mouse_watcher_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 157 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
158 }; 158 };
159 159
160 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_ 160 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/download/download_shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698