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

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

Issue 2009333002: Converts Widget::SetOpacity from char to float (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ui/views/widget/widget.h ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 native_widget_->SetFullscreen(fullscreen); 693 native_widget_->SetFullscreen(fullscreen);
694 694
695 if (non_client_view_) 695 if (non_client_view_)
696 non_client_view_->Layout(); 696 non_client_view_->Layout();
697 } 697 }
698 698
699 bool Widget::IsFullscreen() const { 699 bool Widget::IsFullscreen() const {
700 return native_widget_->IsFullscreen(); 700 return native_widget_->IsFullscreen();
701 } 701 }
702 702
703 void Widget::SetOpacity(unsigned char opacity) { 703 void Widget::SetOpacity(float opacity) {
704 native_widget_->SetOpacity(opacity); 704 native_widget_->SetOpacity(opacity);
705 } 705 }
706 706
707 void Widget::FlashFrame(bool flash) { 707 void Widget::FlashFrame(bool flash) {
708 native_widget_->FlashFrame(flash); 708 native_widget_->FlashFrame(flash);
709 } 709 }
710 710
711 View* Widget::GetRootView() { 711 View* Widget::GetRootView() {
712 return root_view_.get(); 712 return root_view_.get();
713 } 713 }
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 1487
1488 //////////////////////////////////////////////////////////////////////////////// 1488 ////////////////////////////////////////////////////////////////////////////////
1489 // internal::NativeWidgetPrivate, NativeWidget implementation: 1489 // internal::NativeWidgetPrivate, NativeWidget implementation:
1490 1490
1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1491 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1492 return this; 1492 return this;
1493 } 1493 }
1494 1494
1495 } // namespace internal 1495 } // namespace internal
1496 } // namespace views 1496 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698