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

Side by Side Diff: chrome/browser/ui/touch/keyboard/keyboard_manager.h

Issue 8044018: Move chrome/browser/ui/touch/keyboard* to chrome/browser/ui/virtual_keyboard/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged ToT Created 9 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TOUCH_KEYBOARD_KEYBOARD_MANAGER_H_
6 #define CHROME_BROWSER_UI_TOUCH_KEYBOARD_KEYBOARD_MANAGER_H_
7 #pragma once
8
9 #include "base/memory/singleton.h"
10 #include "views/desktop/desktop_window_view.h"
11 #include "views/widget/widget.h"
12
13 class KeyboardWidget;
14
15 // A singleton object to manage the virtual keyboard.
16 class KeyboardManager : public views::Widget::Observer,
17 public views::desktop::DesktopWindowView::Observer {
18 public:
19 // Returns the singleton object.
20 static KeyboardManager* GetInstance();
21
22 // Shows the keyboard for the target widget. The events from the keyboard will
23 // be sent to |widget|.
24 // TODO(sad): Allow specifying the type of keyboard to show.
25 void ShowKeyboardForWidget(views::Widget* widget);
26
27 // Hides the keyboard.
28 void Hide();
29
30 // Returns the keyboard Widget.
31 views::Widget* keyboard();
32
33 private:
34 friend struct DefaultSingletonTraits<KeyboardManager>;
35
36 KeyboardManager();
37 virtual ~KeyboardManager();
38
39 // Overridden from views::Widget::Observer.
40 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
41
42 // Overridden from views::desktop::DesktopWindowView::Observer
43 virtual void OnDesktopBoundsChanged(const gfx::Rect& prev_bounds) OVERRIDE;
44
45 KeyboardWidget* keyboard_;
46
47 DISALLOW_COPY_AND_ASSIGN(KeyboardManager);
48 };
49
50 #endif // CHROME_BROWSER_UI_TOUCH_KEYBOARD_KEYBOARD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/frame/touch_browser_frame_view.cc ('k') | chrome/browser/ui/touch/keyboard/keyboard_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698