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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; | 82 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
83 | 83 |
84 // Overrridden from TabStripModelObserver. | 84 // Overrridden from TabStripModelObserver. |
85 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, | 85 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
86 TabContentsWrapper* new_contents, | 86 TabContentsWrapper* new_contents, |
87 int index, | 87 int index, |
88 bool user_gesture); | 88 bool user_gesture); |
89 virtual void TabStripEmpty(); | 89 virtual void TabStripEmpty(); |
90 | 90 |
91 // Overridden from NotificationObserver. | 91 // Overridden from NotificationObserver. |
92 virtual void Observe(NotificationType type, | 92 virtual void Observe(int type, |
93 const NotificationSource& source, | 93 const NotificationSource& source, |
94 const NotificationDetails& details); | 94 const NotificationDetails& details); |
95 | 95 |
96 // Overridden from ui::AnimationDelegate: | 96 // Overridden from ui::AnimationDelegate: |
97 virtual void AnimationProgressed(const ui::Animation* animation); | 97 virtual void AnimationProgressed(const ui::Animation* animation); |
98 virtual void AnimationEnded(const ui::Animation* animation); | 98 virtual void AnimationEnded(const ui::Animation* animation); |
99 | 99 |
100 bool keyboard_showing_; | 100 bool keyboard_showing_; |
101 int keyboard_height_; | 101 int keyboard_height_; |
102 bool focus_listener_added_; | 102 bool focus_listener_added_; |
103 KeyboardContainerView* keyboard_; | 103 KeyboardContainerView* keyboard_; |
104 NotificationRegistrar registrar_; | 104 NotificationRegistrar registrar_; |
105 | 105 |
106 scoped_ptr<ui::SlideAnimation> animation_; | 106 scoped_ptr<ui::SlideAnimation> animation_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); | 108 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 111 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |