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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTEXT_MENU_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/time/time.h" 12 #include "base/time/time.h"
12 #include "chrome/browser/download/download_shelf_context_menu.h" 13 #include "chrome/browser/download/download_shelf_context_menu.h"
13 #include "ui/base/ui_base_types.h" 14 #include "ui/base/ui_base_types.h"
14 15
15 namespace content { 16 namespace content {
16 class DownloadItem; 17 class DownloadItem;
17 class PageNavigator; 18 class PageNavigator;
18 } 19 }
19 20
20 namespace gfx { 21 namespace gfx {
(...skipping 12 matching lines...) Expand all
33 34
34 base::TimeTicks close_time() const { return close_time_; } 35 base::TimeTicks close_time() const { return close_time_; }
35 36
36 // |rect| is the bounding area for positioning the menu in screen coordinates. 37 // |rect| is the bounding area for positioning the menu in screen coordinates.
37 // The menu will be positioned above or below but not overlapping |rect|. 38 // The menu will be positioned above or below but not overlapping |rect|.
38 void Run(views::Widget* parent_widget, 39 void Run(views::Widget* parent_widget,
39 const gfx::Rect& rect, 40 const gfx::Rect& rect,
40 ui::MenuSourceType source_type); 41 ui::MenuSourceType source_type);
41 42
42 private: 43 private:
43 scoped_ptr<views::MenuRunner> menu_runner_; 44 std::unique_ptr<views::MenuRunner> menu_runner_;
44 45
45 // Time the menu was closed. 46 // Time the menu was closed.
46 base::TimeTicks close_time_; 47 base::TimeTicks close_time_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView); 49 DISALLOW_COPY_AND_ASSIGN(DownloadShelfContextMenuView);
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_ 52 #endif // CHROME_BROWSER_UI_VIEWS_DOWNLOAD_DOWNLOAD_SHELF_CONTEXT_MENU_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698