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

Side by Side Diff: views/widget/native_widget_views.cc

Issue 6976040: Revert 86914 - Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_win.h » ('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 #include "views/widget/native_widget_views.h" 5 #include "views/widget/native_widget_views.h"
6 6
7 #include "views/view.h" 7 #include "views/view.h"
8 #include "views/widget/native_widget_view.h" 8 #include "views/widget/native_widget_view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } 170 }
171 171
172 void NativeWidgetViews::Show() { 172 void NativeWidgetViews::Show() {
173 view_->SetVisible(true); 173 view_->SetVisible(true);
174 } 174 }
175 175
176 void NativeWidgetViews::Hide() { 176 void NativeWidgetViews::Hide() {
177 view_->SetVisible(false); 177 view_->SetVisible(false);
178 } 178 }
179 179
180 void NativeWidgetViews::SetOpacity(unsigned char opacity) {
181 NOTIMPLEMENTED();
182 }
183
184 void NativeWidgetViews::SetAlwaysOnTop(bool on_top) {
185 NOTIMPLEMENTED();
186 }
187
180 bool NativeWidgetViews::IsVisible() const { 188 bool NativeWidgetViews::IsVisible() const {
181 return view_->IsVisible(); 189 return view_->IsVisible();
182 } 190 }
183 191
184 void NativeWidgetViews::Activate() {
185 NOTIMPLEMENTED();
186 }
187
188 void NativeWidgetViews::Deactivate() {
189 NOTIMPLEMENTED();
190 }
191
192 bool NativeWidgetViews::IsActive() const { 192 bool NativeWidgetViews::IsActive() const {
193 return active_; 193 return active_;
194 } 194 }
195 195
196 void NativeWidgetViews::SetAlwaysOnTop(bool on_top) {
197 NOTIMPLEMENTED();
198 }
199
200 void NativeWidgetViews::Maximize() {
201 NOTIMPLEMENTED();
202 }
203
204 void NativeWidgetViews::Minimize() {
205 NOTIMPLEMENTED();
206 }
207
208 bool NativeWidgetViews::IsMaximized() const {
209 NOTIMPLEMENTED();
210 return false;
211 }
212
213 bool NativeWidgetViews::IsMinimized() const {
214 NOTIMPLEMENTED();
215 return false;
216 }
217
218 void NativeWidgetViews::Restore() {
219 NOTIMPLEMENTED();
220 }
221
222 void NativeWidgetViews::SetOpacity(unsigned char opacity) {
223 NOTIMPLEMENTED();
224 }
225
226 bool NativeWidgetViews::IsAccessibleWidget() const { 196 bool NativeWidgetViews::IsAccessibleWidget() const {
227 NOTIMPLEMENTED(); 197 NOTIMPLEMENTED();
228 return false; 198 return false;
229 } 199 }
230 200
231 bool NativeWidgetViews::ContainsNativeView(gfx::NativeView native_view) const { 201 bool NativeWidgetViews::ContainsNativeView(gfx::NativeView native_view) const {
232 NOTIMPLEMENTED(); 202 NOTIMPLEMENTED();
233 return GetParentNativeWidget()->ContainsNativeView(native_view); 203 return GetParentNativeWidget()->ContainsNativeView(native_view);
234 } 204 }
235 205
(...skipping 17 matching lines...) Expand all
253 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { 223 NativeWidget* NativeWidgetViews::GetParentNativeWidget() {
254 return view_->GetWidget()->native_widget(); 224 return view_->GetWidget()->native_widget();
255 } 225 }
256 226
257 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { 227 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const {
258 return view_->GetWidget()->native_widget(); 228 return view_->GetWidget()->native_widget();
259 } 229 }
260 230
261 } // namespace views 231 } // namespace views
262 232
OLDNEW
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698