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

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

Issue 147593002: Implement new dangerous download reporting dialog for UNCOMMON_DOWNLOAD, in Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include fix Created 6 years, 10 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
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DownloadShelfView(Browser* browser, BrowserView* parent); 49 DownloadShelfView(Browser* browser, BrowserView* parent);
50 virtual ~DownloadShelfView(); 50 virtual ~DownloadShelfView();
51 51
52 // Sent from the DownloadItemView when the user opens an item. 52 // Sent from the DownloadItemView when the user opens an item.
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_.
60 BrowserView* get_parent() { return parent_; }
61
59 // Implementation of View. 62 // Implementation of View.
60 virtual gfx::Size GetPreferredSize() OVERRIDE; 63 virtual gfx::Size GetPreferredSize() OVERRIDE;
61 virtual void Layout() OVERRIDE; 64 virtual void Layout() OVERRIDE;
62 virtual void ViewHierarchyChanged( 65 virtual void ViewHierarchyChanged(
63 const ViewHierarchyChangedDetails& details) OVERRIDE; 66 const ViewHierarchyChangedDetails& details) OVERRIDE;
64 67
65 // Implementation of gfx::AnimationDelegate. 68 // Implementation of gfx::AnimationDelegate.
66 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 69 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
67 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 70 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
68 71
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 151
149 // The window this shelf belongs to. 152 // The window this shelf belongs to.
150 BrowserView* parent_; 153 BrowserView* parent_;
151 154
152 views::MouseWatcher mouse_watcher_; 155 views::MouseWatcher mouse_watcher_;
153 156
154 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView); 157 DISALLOW_COPY_AND_ASSIGN(DownloadShelfView);
155 }; 158 };
156 159
157 #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/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698