| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 void NativeViewDestroyed(); | 76 void NativeViewDestroyed(); |
| 77 | 77 |
| 78 // Overridden from View: | 78 // Overridden from View: |
| 79 virtual gfx::Size GetPreferredSize(); | 79 virtual gfx::Size GetPreferredSize(); |
| 80 virtual void Layout(); | 80 virtual void Layout(); |
| 81 virtual void OnPaint(gfx::Canvas* canvas); | 81 virtual void OnPaint(gfx::Canvas* canvas); |
| 82 virtual void VisibilityChanged(View* starting_from, bool is_visible); | 82 virtual void VisibilityChanged(View* starting_from, bool is_visible); |
| 83 virtual void OnFocus(); | 83 virtual void OnFocus(); |
| 84 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 84 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 85 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); |
| 85 | 86 |
| 86 protected: | 87 protected: |
| 87 virtual bool NeedsNotificationWhenVisibleBoundsChange() const; | 88 virtual bool NeedsNotificationWhenVisibleBoundsChange() const; |
| 88 virtual void OnVisibleBoundsChanged(); | 89 virtual void OnVisibleBoundsChanged(); |
| 89 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 90 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 90 virtual std::string GetClassName() const; | 91 virtual std::string GetClassName() const; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 // Detach the native view. |destroyed| is true if the native view is | 94 // Detach the native view. |destroyed| is true if the native view is |
| 94 // detached because it's being destroyed, or false otherwise. | 95 // detached because it's being destroyed, or false otherwise. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 115 | 116 |
| 116 // The view that should be given focus when this NativeViewHost is focused. | 117 // The view that should be given focus when this NativeViewHost is focused. |
| 117 View* focus_view_; | 118 View* focus_view_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 120 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace views | 123 } // namespace views |
| 123 | 124 |
| 124 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 125 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| OLD | NEW |