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

Side by Side Diff: chrome/browser/ui/views/first_run_bubble.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) 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_FIRST_RUN_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/events/event.h" 11 #include "ui/events/event.h"
11 #include "ui/views/bubble/bubble_dialog_delegate.h" 12 #include "ui/views/bubble/bubble_dialog_delegate.h"
12 #include "ui/views/controls/link_listener.h" 13 #include "ui/views/controls/link_listener.h"
13 14
14 namespace views { 15 namespace views {
15 class EventMonitor; 16 class EventMonitor;
16 } 17 }
17 18
18 class Browser; 19 class Browser;
19 20
(...skipping 24 matching lines...) Expand all
44 void OnKeyEvent(ui::KeyEvent* event) override; 45 void OnKeyEvent(ui::KeyEvent* event) override;
45 void OnMouseEvent(ui::MouseEvent* event) override; 46 void OnMouseEvent(ui::MouseEvent* event) override;
46 void OnGestureEvent(ui::GestureEvent* event) override; 47 void OnGestureEvent(ui::GestureEvent* event) override;
47 48
48 private: 49 private:
49 void CloseBubble(); 50 void CloseBubble();
50 51
51 // The bubble instance. 52 // The bubble instance.
52 FirstRunBubble* bubble_; 53 FirstRunBubble* bubble_;
53 54
54 scoped_ptr<views::EventMonitor> event_monitor_; 55 std::unique_ptr<views::EventMonitor> event_monitor_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleCloser); 57 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleCloser);
57 }; 58 };
58 59
59 // views::LinkListener overrides: 60 // views::LinkListener overrides:
60 void LinkClicked(views::Link* source, int event_flags) override; 61 void LinkClicked(views::Link* source, int event_flags) override;
61 62
62 Browser* browser_; 63 Browser* browser_;
63 FirstRunBubbleCloser bubble_closer_; 64 FirstRunBubbleCloser bubble_closer_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble); 66 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble);
66 }; 67 };
67 68
68 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_ 69 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/first_run_bubble_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698