| 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 #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 Loading... |
| 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 bool NativeWidgetViews::IsVisible() const { |
| 181 return view_->IsVisible(); |
| 182 } |
| 183 |
| 184 void NativeWidgetViews::Activate() { |
| 185 NOTIMPLEMENTED(); |
| 186 } |
| 187 |
| 188 void NativeWidgetViews::Deactivate() { |
| 189 NOTIMPLEMENTED(); |
| 190 } |
| 191 |
| 192 bool NativeWidgetViews::IsActive() const { |
| 193 return active_; |
| 194 } |
| 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 |
| 180 void NativeWidgetViews::SetOpacity(unsigned char opacity) { | 222 void NativeWidgetViews::SetOpacity(unsigned char opacity) { |
| 181 NOTIMPLEMENTED(); | 223 NOTIMPLEMENTED(); |
| 182 } | 224 } |
| 183 | 225 |
| 184 void NativeWidgetViews::SetAlwaysOnTop(bool on_top) { | |
| 185 NOTIMPLEMENTED(); | |
| 186 } | |
| 187 | |
| 188 bool NativeWidgetViews::IsVisible() const { | |
| 189 return view_->IsVisible(); | |
| 190 } | |
| 191 | |
| 192 bool NativeWidgetViews::IsActive() const { | |
| 193 return active_; | |
| 194 } | |
| 195 | |
| 196 bool NativeWidgetViews::IsAccessibleWidget() const { | 226 bool NativeWidgetViews::IsAccessibleWidget() const { |
| 197 NOTIMPLEMENTED(); | 227 NOTIMPLEMENTED(); |
| 198 return false; | 228 return false; |
| 199 } | 229 } |
| 200 | 230 |
| 201 bool NativeWidgetViews::ContainsNativeView(gfx::NativeView native_view) const { | 231 bool NativeWidgetViews::ContainsNativeView(gfx::NativeView native_view) const { |
| 202 NOTIMPLEMENTED(); | 232 NOTIMPLEMENTED(); |
| 203 return GetParentNativeWidget()->ContainsNativeView(native_view); | 233 return GetParentNativeWidget()->ContainsNativeView(native_view); |
| 204 } | 234 } |
| 205 | 235 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 223 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { | 253 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { |
| 224 return view_->GetWidget()->native_widget(); | 254 return view_->GetWidget()->native_widget(); |
| 225 } | 255 } |
| 226 | 256 |
| 227 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { | 257 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { |
| 228 return view_->GetWidget()->native_widget(); | 258 return view_->GetWidget()->native_widget(); |
| 229 } | 259 } |
| 230 | 260 |
| 231 } // namespace views | 261 } // namespace views |
| 232 | 262 |
| OLD | NEW |