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

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

Issue 98703003: Mode Indicator using BubbleDelegateView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "chrome/browser/chromeos/input_method/delayable_widget.h"
12 #include "ui/gfx/rect.h"
13
14 namespace chromeos {
15 namespace input_method {
16
17 class ModeIndicatorView;
18
19 // ModeIndicatorWidget is the widget to display IME mode with bubble shape.
20 class ModeIndicatorWidget : public DelayableWidget {
21 public:
22 ModeIndicatorWidget();
23 virtual ~ModeIndicatorWidget();
24
25 // Set cursor location, which is the base point to display this indicator.
26 // Bacisally this indicator is displayed underneath the cursor.
27 void SetCursorBounds(const gfx::Rect& corsor_bounds);
28 void SetLabelTextUtf8(const std::string& text_utf8);
29
30 private:
31 ModeIndicatorView* mode_view_;
32 gfx::Rect cursor_bounds_;
33
34 DISALLOW_COPY_AND_ASSIGN(ModeIndicatorWidget);
35 };
36
37 } // namespace input_method
38 } // namespace chromeos
39
40 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698