OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ |
6 #define CHROME_BROWSER_UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "ui/views/desktop/desktop_window_view.h" | 10 #include "ui/views/desktop/desktop_window_view.h" |
11 #include "views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
12 | 12 |
13 class KeyboardWidget; | 13 class KeyboardWidget; |
14 | 14 |
15 // A singleton object to manage the virtual keyboard. | 15 // A singleton object to manage the virtual keyboard. |
16 class VirtualKeyboardManager : public views::Widget::Observer, | 16 class VirtualKeyboardManager : public views::Widget::Observer, |
17 public views::desktop::DesktopWindowView::Observer { | 17 public views::desktop::DesktopWindowView::Observer { |
18 public: | 18 public: |
19 // Returns the singleton object. | 19 // Returns the singleton object. |
20 static VirtualKeyboardManager* GetInstance(); | 20 static VirtualKeyboardManager* GetInstance(); |
21 | 21 |
(...skipping 19 matching lines...) Expand all Loading... |
41 | 41 |
42 // Overridden from views::desktop::DesktopWindowView::Observer | 42 // Overridden from views::desktop::DesktopWindowView::Observer |
43 virtual void OnDesktopBoundsChanged(const gfx::Rect& prev_bounds) OVERRIDE; | 43 virtual void OnDesktopBoundsChanged(const gfx::Rect& prev_bounds) OVERRIDE; |
44 | 44 |
45 KeyboardWidget* keyboard_; | 45 KeyboardWidget* keyboard_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManager); | 47 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardManager); |
48 }; | 48 }; |
49 | 49 |
50 #endif // CHROME_BROWSER_UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ | 50 #endif // CHROME_BROWSER_UI_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_MANAGER_H_ |
OLD | NEW |