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

Side by Side Diff: chrome/browser/views/download_tab_view.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_DONWLOAD_TAB_VIEW_H__ 5 #ifndef CHROME_BROWSER_VIEWS_DONWLOAD_TAB_VIEW_H__
6 #define CHROME_BROWSER_VIEWS_DONWLOAD_TAB_VIEW_H__ 6 #define CHROME_BROWSER_VIEWS_DONWLOAD_TAB_VIEW_H__
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "chrome/browser/cancelable_request.h" 9 #include "chrome/browser/cancelable_request.h"
10 #include "chrome/browser/download/download_manager.h" 10 #include "chrome/browser/download/download_manager.h"
(...skipping 17 matching lines...) Expand all
28 public ChromeViews::LinkController, 28 public ChromeViews::LinkController,
29 public ChromeViews::NativeButton::Listener { 29 public ChromeViews::NativeButton::Listener {
30 public: 30 public:
31 DownloadItemTabView(); 31 DownloadItemTabView();
32 virtual ~DownloadItemTabView(); 32 virtual ~DownloadItemTabView();
33 33
34 // View overrides 34 // View overrides
35 virtual void Layout(); 35 virtual void Layout();
36 virtual void Paint(ChromeCanvas* canvas); 36 virtual void Paint(ChromeCanvas* canvas);
37 void PaintBackground(ChromeCanvas* canvas); 37 void PaintBackground(ChromeCanvas* canvas);
38 virtual void GetPreferredSize(CSize* out); 38 virtual gfx::Size GetPreferredSize();
39 virtual void DidChangeBounds(const CRect& previous, const CRect& current); 39 virtual void DidChangeBounds(const CRect& previous, const CRect& current);
40 virtual bool OnMousePressed(const ChromeViews::MouseEvent& event); 40 virtual bool OnMousePressed(const ChromeViews::MouseEvent& event);
41 virtual bool OnMouseDragged(const ChromeViews::MouseEvent& event); 41 virtual bool OnMouseDragged(const ChromeViews::MouseEvent& event);
42 42
43 // Mode specific layouts 43 // Mode specific layouts
44 void LayoutDate(); 44 void LayoutDate();
45 void LayoutComplete(); 45 void LayoutComplete();
46 void LayoutCancelled(); 46 void LayoutCancelled();
47 void LayoutInProgress(); 47 void LayoutInProgress();
48 void LayoutPromptDangerousDownload(); 48 void LayoutPromptDangerousDownload();
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // The view we return from GetView. The contents of this is the 267 // The view we return from GetView. The contents of this is the
268 // bookmarks_view_ 268 // bookmarks_view_
269 SearchableUIContainer searchable_container_; 269 SearchableUIContainer searchable_container_;
270 270
271 DownloadTabView* download_tab_view_; 271 DownloadTabView* download_tab_view_;
272 272
273 DISALLOW_EVIL_CONSTRUCTORS(DownloadTabUI); 273 DISALLOW_EVIL_CONSTRUCTORS(DownloadTabUI);
274 }; 274 };
275 275
276 #endif // CHROME_BROWSER_VIEWS_DONWLOAD_TAB_VIEW_H__ 276 #endif // CHROME_BROWSER_VIEWS_DONWLOAD_TAB_VIEW_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698