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

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

Issue 8635010: Fixes comment as TOUCH_UI does not exist anymore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « no previous file | no next file » | 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 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual bool NeedsNotificationWhenVisibleBoundsChange() const; 87 virtual bool NeedsNotificationWhenVisibleBoundsChange() const;
88 virtual void OnVisibleBoundsChanged(); 88 virtual void OnVisibleBoundsChanged();
89 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 89 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
90 virtual std::string GetClassName() const; 90 virtual std::string GetClassName() const;
91 91
92 private: 92 private:
93 // Detach the native view. |destroyed| is true if the native view is 93 // Detach the native view. |destroyed| is true if the native view is
94 // detached because it's being destroyed, or false otherwise. 94 // detached because it's being destroyed, or false otherwise.
95 void Detach(bool destroyed); 95 void Detach(bool destroyed);
96 96
97 // The attached native view. There is exactly one native_view_ or views_view_ 97 // The attached native view. There is exactly one native_view_ attached.
98 // attached.
99 gfx::NativeView native_view_; 98 gfx::NativeView native_view_;
100 99
101 // A platform-specific wrapper that does the OS-level manipulation of the 100 // A platform-specific wrapper that does the OS-level manipulation of the
102 // attached gfx::NativeView. 101 // attached gfx::NativeView.
103 scoped_ptr<NativeViewHostWrapper> native_wrapper_; 102 scoped_ptr<NativeViewHostWrapper> native_wrapper_;
104 103
105 // The preferred size of this View 104 // The preferred size of this View
106 gfx::Size preferred_size_; 105 gfx::Size preferred_size_;
107 106
108 // True if the native view is being resized using the fast method described 107 // True if the native view is being resized using the fast method described
109 // in the setter/accessor above. 108 // in the setter/accessor above.
110 bool fast_resize_; 109 bool fast_resize_;
111 110
112 // Value of |fast_resize_| during the last call to Layout. 111 // Value of |fast_resize_| during the last call to Layout.
113 bool fast_resize_at_last_layout_; 112 bool fast_resize_at_last_layout_;
114 113
115 // The view that should be given focus when this NativeViewHost is focused. 114 // The view that should be given focus when this NativeViewHost is focused.
116 View* focus_view_; 115 View* focus_view_;
117 116
118 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); 117 DISALLOW_COPY_AND_ASSIGN(NativeViewHost);
119 }; 118 };
120 119
121 } // namespace views 120 } // namespace views
122 121
123 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 122 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698