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

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

Issue 8383022: [Aura] Turns on Window opacity support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify per sky's comments in #1 Created 9 years, 1 month 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 #include "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/desktop.h" 8 #include "ui/aura/desktop.h"
9 #include "ui/aura/event.h" 9 #include "ui/aura/event.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 void NativeWidgetAura::SetFullscreen(bool fullscreen) { 390 void NativeWidgetAura::SetFullscreen(bool fullscreen) {
391 fullscreen ? window_->Fullscreen() : window_->Restore(); 391 fullscreen ? window_->Fullscreen() : window_->Restore();
392 } 392 }
393 393
394 bool NativeWidgetAura::IsFullscreen() const { 394 bool NativeWidgetAura::IsFullscreen() const {
395 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN; 395 return window_->show_state() == ui::SHOW_STATE_FULLSCREEN;
396 } 396 }
397 397
398 void NativeWidgetAura::SetOpacity(unsigned char opacity) { 398 void NativeWidgetAura::SetOpacity(unsigned char opacity) {
399 NOTIMPLEMENTED(); 399 window_->layer()->SetOpacity(opacity / 255.0);
400 } 400 }
401 401
402 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { 402 void NativeWidgetAura::SetUseDragFrame(bool use_drag_frame) {
403 NOTIMPLEMENTED(); 403 NOTIMPLEMENTED();
404 } 404 }
405 405
406 bool NativeWidgetAura::IsAccessibleWidget() const { 406 bool NativeWidgetAura::IsAccessibleWidget() const {
407 NOTIMPLEMENTED(); 407 NOTIMPLEMENTED();
408 return false; 408 return false;
409 } 409 }
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 } 644 }
645 645
646 // static 646 // static
647 bool NativeWidgetPrivate::IsMouseButtonDown() { 647 bool NativeWidgetPrivate::IsMouseButtonDown() {
648 NOTIMPLEMENTED(); 648 NOTIMPLEMENTED();
649 return false; 649 return false;
650 } 650 }
651 651
652 } // namespace internal 652 } // namespace internal
653 } // namespace views 653 } // namespace views
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