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" | |
10 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
11 #include "content/common/notification_observer.h" | |
12 #include "content/common/notification_registrar.h" | |
13 #include "googleurl/src/gurl.h" | |
14 #include "ui/base/animation/animation_delegate.h" | |
15 #include "views/focus/focus_manager.h" | |
16 | |
17 #if defined(OS_CHROMEOS) | |
18 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | |
19 #endif | |
20 | 10 |
21 class BrowserFrame; | 11 class BrowserFrame; |
22 class BrowserView; | 12 class BrowserView; |
23 | 13 |
24 class TouchBrowserFrameView | 14 class TouchBrowserFrameView |
25 : public OpaqueBrowserFrameView, | 15 : public OpaqueBrowserFrameView { |
26 public views::FocusChangeListener { | |
27 public: | 16 public: |
28 // Internal class name. | 17 // Internal class name. |
29 static const char kViewClassName[]; | 18 static const char kViewClassName[]; |
30 | 19 |
31 // Constructs a non-client view for an BrowserFrame. | 20 // Constructs a non-client view for an BrowserFrame. |
32 TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); | 21 TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
33 virtual ~TouchBrowserFrameView(); | 22 virtual ~TouchBrowserFrameView(); |
34 | 23 |
35 private: | 24 private: |
36 // views::FocusChangeListener implementation | |
37 virtual void FocusWillChange(views::View* focused_before, | |
38 views::View* focused_now); | |
39 | |
40 // Overridden from views::View | 25 // Overridden from views::View |
41 virtual std::string GetClassName() const OVERRIDE; | 26 virtual std::string GetClassName() const OVERRIDE; |
42 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | |
43 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; | 27 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
44 | 28 |
45 bool focus_listener_added_; | |
46 | |
47 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); | 29 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
48 }; | 30 }; |
49 | 31 |
50 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 32 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |