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

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

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 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_DELEGATE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_DELEGATE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_DELEGATE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_DELEGATE_VIEW_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/views/bubble/bubble_delegate.h" 11 #include "ui/views/bubble/bubble_delegate.h"
12 12
13 namespace views { 13 namespace views {
14 class Label; 14 class Label;
15 } // namespace views 15 } // namespace views
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace input_method { 18 namespace input_method {
19 19
20 class ModeIndicatorDelegateView : public views::BubbleDelegateView { 20 class ModeIndicatorDelegateView : public views::BubbleDelegateView {
21 public: 21 public:
22 ModeIndicatorDelegateView(const gfx::Rect& cursor_bounds, 22 ModeIndicatorDelegateView(const gfx::Rect& cursor_bounds,
23 const string16& label); 23 const base::string16& label);
24 virtual ~ModeIndicatorDelegateView(); 24 virtual ~ModeIndicatorDelegateView();
25 25
26 // Show the mode indicator then hide with fading animation. 26 // Show the mode indicator then hide with fading animation.
27 void ShowAndFadeOut(); 27 void ShowAndFadeOut();
28 28
29 // views::BubbleDelegateView override: 29 // views::BubbleDelegateView override:
30 virtual gfx::Size GetPreferredSize() OVERRIDE; 30 virtual gfx::Size GetPreferredSize() OVERRIDE;
31 31
32 protected: 32 protected:
33 // views::BubbleDelegateView override: 33 // views::BubbleDelegateView override:
34 virtual void Init() OVERRIDE; 34 virtual void Init() OVERRIDE;
35 35
36 private: 36 private:
37 // Hide the window with fading animation. This is called from 37 // Hide the window with fading animation. This is called from
38 // ShowAndFadeOut. 38 // ShowAndFadeOut.
39 void FadeOut(); 39 void FadeOut();
40 40
41 gfx::Rect cursor_bounds_; 41 gfx::Rect cursor_bounds_;
42 views::Label* label_view_; 42 views::Label* label_view_;
43 base::OneShotTimer<ModeIndicatorDelegateView> timer_; 43 base::OneShotTimer<ModeIndicatorDelegateView> timer_;
44 }; 44 };
45 45
46 } // namespace input_method 46 } // namespace input_method
47 } // namespace chromeos 47 } // namespace chromeos
48 48
49 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_DELEGATE_VIEW_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_DELEGATE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698