Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ui/views/controls/native/native_view_host.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/menu/submenu_view.cc ('k') | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/submenu_view.cc ('k') | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698