| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Overridden from View. | 38 // Overridden from View. |
| 39 virtual gfx::Size GetPreferredSize() OVERRIDE; | 39 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 40 virtual void Layout() OVERRIDE; | 40 virtual void Layout() OVERRIDE; |
| 41 virtual void ViewHierarchyChanged(bool is_add, | 41 virtual void ViewHierarchyChanged(bool is_add, |
| 42 View* parent, | 42 View* parent, |
| 43 View* child) OVERRIDE; | 43 View* child) OVERRIDE; |
| 44 virtual std::string GetClassName() const OVERRIDE; | 44 virtual std::string GetClassName() const OVERRIDE; |
| 45 | 45 |
| 46 // Overrideen from View for keyboard UI purpose. | 46 // Overrideen from View for keyboard UI purpose. |
| 47 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; | 47 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 48 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& e) OVERRIDE; | 48 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& e) OVERRIDE; |
| 49 virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE; | 49 virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE; |
| 50 | 50 |
| 51 // Overridden from ScrollBar. | 51 // Overridden from ScrollBar. |
| 52 virtual void Update(int viewport_size, | 52 virtual void Update(int viewport_size, |
| 53 int content_size, | 53 int content_size, |
| 54 int current_pos) OVERRIDE; | 54 int current_pos) OVERRIDE; |
| 55 virtual int GetPosition() const OVERRIDE; | 55 virtual int GetPosition() const OVERRIDE; |
| 56 virtual int GetLayoutSize() const OVERRIDE; | 56 virtual int GetLayoutSize() const OVERRIDE; |
| 57 | 57 |
| 58 // init border | 58 // init border |
| 59 NativeScrollBarWrapper* native_wrapper_; | 59 NativeScrollBarWrapper* native_wrapper_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar); | 61 DISALLOW_COPY_AND_ASSIGN(NativeScrollBar); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace views | 64 } // namespace views |
| 65 | 65 |
| 66 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ | 66 #endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_H_ |
| OLD | NEW |