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

Side by Side Diff: chrome/browser/chromeos/input_method/mode_indicator_controller.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_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/base/ime/chromeos/input_method_manager.h" 11 #include "ui/base/ime/chromeos/input_method_manager.h"
11 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
12 #include "ui/views/widget/widget_observer.h" 13 #include "ui/views/widget/widget_observer.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 namespace input_method { 16 namespace input_method {
16 17
17 class ModeIndicatorObserverInterface : public views::WidgetObserver { 18 class ModeIndicatorObserverInterface : public views::WidgetObserver {
18 public: 19 public:
19 ModeIndicatorObserverInterface() {} 20 ModeIndicatorObserverInterface() {}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 InputMethodManager* imm_; 59 InputMethodManager* imm_;
59 60
60 // Cursor bounds representing the anchor rect of the mode indicator. 61 // Cursor bounds representing the anchor rect of the mode indicator.
61 gfx::Rect cursor_bounds_; 62 gfx::Rect cursor_bounds_;
62 63
63 // True on a text field is focused. 64 // True on a text field is focused.
64 bool is_focused_; 65 bool is_focused_;
65 66
66 // Observer of the widgets created by BubbleDelegateView. This is used to 67 // Observer of the widgets created by BubbleDelegateView. This is used to
67 // close the previous widget when a new widget is created. 68 // close the previous widget when a new widget is created.
68 scoped_ptr<ModeIndicatorObserverInterface> mi_observer_; 69 std::unique_ptr<ModeIndicatorObserverInterface> mi_observer_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(ModeIndicatorController); 71 DISALLOW_COPY_AND_ASSIGN(ModeIndicatorController);
71 }; 72 };
72 73
73 } // namespace input_method 74 } // namespace input_method
74 } // namespace chromeos 75 } // namespace chromeos
75 76
76 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698