OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ |
6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ | 6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ |
7 | 7 |
8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "chrome/browser/extensions/extension_shelf_model.h" | 10 #include "chrome/browser/extensions/extension_shelf_model.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return size_animation_->GetCurrentValue(); | 44 return size_animation_->GetCurrentValue(); |
45 } | 45 } |
46 | 46 |
47 // View methods: | 47 // View methods: |
48 virtual void PaintChildren(gfx::Canvas* canvas); | 48 virtual void PaintChildren(gfx::Canvas* canvas); |
49 virtual gfx::Size GetPreferredSize(); | 49 virtual gfx::Size GetPreferredSize(); |
50 virtual void Layout(); | 50 virtual void Layout(); |
51 virtual void OnMouseExited(const views::MouseEvent& event); | 51 virtual void OnMouseExited(const views::MouseEvent& event); |
52 virtual void OnMouseEntered(const views::MouseEvent& event); | 52 virtual void OnMouseEntered(const views::MouseEvent& event); |
53 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 53 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
54 virtual void ThemeChanged(); | 54 virtual void OnThemeChanged(); |
55 | 55 |
56 // ExtensionContainer methods: | 56 // ExtensionContainer methods: |
57 virtual void OnExtensionMouseEvent(ExtensionView* view); | 57 virtual void OnExtensionMouseEvent(ExtensionView* view); |
58 virtual void OnExtensionMouseLeave(ExtensionView* view); | 58 virtual void OnExtensionMouseLeave(ExtensionView* view); |
59 | 59 |
60 // ExtensionShelfModelObserver methods: | 60 // ExtensionShelfModelObserver methods: |
61 virtual void ToolstripInsertedAt(ExtensionHost* toolstrip, int index); | 61 virtual void ToolstripInsertedAt(ExtensionHost* toolstrip, int index); |
62 virtual void ToolstripRemovingAt(ExtensionHost* toolstrip, int index); | 62 virtual void ToolstripRemovingAt(ExtensionHost* toolstrip, int index); |
63 virtual void ToolstripDraggingFrom(ExtensionHost* toolstrip, int index); | 63 virtual void ToolstripDraggingFrom(ExtensionHost* toolstrip, int index); |
64 virtual void ToolstripMoved(ExtensionHost* toolstrip, | 64 virtual void ToolstripMoved(ExtensionHost* toolstrip, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Animation controlling showing and hiding of the shelf. | 145 // Animation controlling showing and hiding of the shelf. |
146 scoped_ptr<SlideAnimation> size_animation_; | 146 scoped_ptr<SlideAnimation> size_animation_; |
147 | 147 |
148 // Are we in fullscreen mode or not. | 148 // Are we in fullscreen mode or not. |
149 bool fullscreen_; | 149 bool fullscreen_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf); | 151 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf); |
152 }; | 152 }; |
153 | 153 |
154 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ | 154 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ |
OLD | NEW |