| 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 UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void NativeViewDestroyed(); | 76 void NativeViewDestroyed(); |
| 77 | 77 |
| 78 // Overridden from View: | 78 // Overridden from View: |
| 79 gfx::Size GetPreferredSize() const override; | 79 gfx::Size GetPreferredSize() const override; |
| 80 void Layout() override; | 80 void Layout() override; |
| 81 void OnPaint(gfx::Canvas* canvas) override; | 81 void OnPaint(gfx::Canvas* canvas) override; |
| 82 void VisibilityChanged(View* starting_from, bool is_visible) override; | 82 void VisibilityChanged(View* starting_from, bool is_visible) override; |
| 83 void OnFocus() override; | 83 void OnFocus() override; |
| 84 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 84 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 85 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; | 85 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; |
| 86 void OnSoftVisibilityChanged(bool visible) override; |
| 86 | 87 |
| 87 protected: | 88 protected: |
| 88 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; | 89 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; |
| 89 void OnVisibleBoundsChanged() override; | 90 void OnVisibleBoundsChanged() override; |
| 90 void ViewHierarchyChanged( | 91 void ViewHierarchyChanged( |
| 91 const ViewHierarchyChangedDetails& details) override; | 92 const ViewHierarchyChangedDetails& details) override; |
| 92 const char* GetClassName() const override; | 93 const char* GetClassName() const override; |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 friend class test::NativeViewHostTestBase; | 96 friend class test::NativeViewHostTestBase; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 122 | 123 |
| 123 // Color to paint in the background while resizing. | 124 // Color to paint in the background while resizing. |
| 124 SkColor resize_background_color_; | 125 SkColor resize_background_color_; |
| 125 | 126 |
| 126 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 127 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace views | 130 } // namespace views |
| 130 | 131 |
| 131 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 132 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| OLD | NEW |