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_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tabs/tab_strip_model_observer.h" | 9 #include "chrome/browser/tabs/tab_strip_model_observer.h" |
10 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 private: | 59 private: |
60 virtual void InitVirtualKeyboard(); | 60 virtual void InitVirtualKeyboard(); |
61 virtual void UpdateKeyboardAndLayout(bool should_show_keyboard); | 61 virtual void UpdateKeyboardAndLayout(bool should_show_keyboard); |
62 virtual VirtualKeyboardType DecideKeyboardStateForView(views::View* view); | 62 virtual VirtualKeyboardType DecideKeyboardStateForView(views::View* view); |
63 | 63 |
64 // Overridden from views::View | 64 // Overridden from views::View |
65 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; | 65 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
66 | 66 |
67 // Overrridden from TabStripModelObserver. | 67 // Overrridden from TabStripModelObserver. |
68 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 68 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
69 TabContentsWrapper* new_contents, | 69 TabContentsWrapper* new_contents, |
70 int index, | 70 int index, |
71 bool user_gesture); | 71 bool user_gesture); |
72 | 72 |
73 // Overridden from NotificationObserver. | 73 // Overridden from NotificationObserver. |
74 virtual void Observe(NotificationType type, | 74 virtual void Observe(NotificationType type, |
75 const NotificationSource& source, | 75 const NotificationSource& source, |
76 const NotificationDetails& details); | 76 const NotificationDetails& details); |
77 | 77 |
78 // Overridden from ui::AnimationDelegate: | 78 // Overridden from ui::AnimationDelegate: |
79 virtual void AnimationProgressed(const ui::Animation* animation); | 79 virtual void AnimationProgressed(const ui::Animation* animation); |
80 virtual void AnimationEnded(const ui::Animation* animation); | 80 virtual void AnimationEnded(const ui::Animation* animation); |
81 | 81 |
82 bool keyboard_showing_; | 82 bool keyboard_showing_; |
83 bool focus_listener_added_; | 83 bool focus_listener_added_; |
84 KeyboardContainerView* keyboard_; | 84 KeyboardContainerView* keyboard_; |
85 NotificationRegistrar registrar_; | 85 NotificationRegistrar registrar_; |
86 | 86 |
87 scoped_ptr<ui::SlideAnimation> animation_; | 87 scoped_ptr<ui::SlideAnimation> animation_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); | 89 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 92 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |