| 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 "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 70   bool fast_resize_at_last_layout() const { | 70   bool fast_resize_at_last_layout() const { | 
| 71     return fast_resize_at_last_layout_; | 71     return fast_resize_at_last_layout_; | 
| 72   } | 72   } | 
| 73 | 73 | 
| 74   // Accessor for |native_view_|. | 74   // Accessor for |native_view_|. | 
| 75   gfx::NativeView native_view() const { return native_view_; } | 75   gfx::NativeView native_view() const { return native_view_; } | 
| 76 | 76 | 
| 77   void NativeViewDestroyed(); | 77   void NativeViewDestroyed(); | 
| 78 | 78 | 
| 79   // Overridden from View: | 79   // Overridden from View: | 
| 80   virtual gfx::Size GetPreferredSize() OVERRIDE; | 80   virtual gfx::Size GetPreferredSize() const OVERRIDE; | 
| 81   virtual void Layout() OVERRIDE; | 81   virtual void Layout() OVERRIDE; | 
| 82   virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 82   virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 
| 83   virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE; | 83   virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE; | 
| 84   virtual void OnFocus() OVERRIDE; | 84   virtual void OnFocus() OVERRIDE; | 
| 85   virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 85   virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 
| 86   virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 86   virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 
| 87 | 87 | 
| 88  protected: | 88  protected: | 
| 89   virtual bool NeedsNotificationWhenVisibleBoundsChange() const OVERRIDE; | 89   virtual bool NeedsNotificationWhenVisibleBoundsChange() const OVERRIDE; | 
| 90   virtual void OnVisibleBoundsChanged() OVERRIDE; | 90   virtual void OnVisibleBoundsChanged() OVERRIDE; | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 123 | 123 | 
| 124   // The view that should be given focus when this NativeViewHost is focused. | 124   // The view that should be given focus when this NativeViewHost is focused. | 
| 125   View* focus_view_; | 125   View* focus_view_; | 
| 126 | 126 | 
| 127   DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 127   DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 
| 128 }; | 128 }; | 
| 129 | 129 | 
| 130 }  // namespace views | 130 }  // namespace views | 
| 131 | 131 | 
| 132 #endif  // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 132 #endif  // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 
| OLD | NEW | 
|---|