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

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

Issue 2598383002: Fix integer overflow. (Closed)
Patch Set: Rebase Created 3 years, 10 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/desktop_aura/desktop_window_tree_host_x11.cc ('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 693
694 if (non_client_view_) 694 if (non_client_view_)
695 non_client_view_->Layout(); 695 non_client_view_->Layout();
696 } 696 }
697 697
698 bool Widget::IsFullscreen() const { 698 bool Widget::IsFullscreen() const {
699 return native_widget_->IsFullscreen(); 699 return native_widget_->IsFullscreen();
700 } 700 }
701 701
702 void Widget::SetOpacity(float opacity) { 702 void Widget::SetOpacity(float opacity) {
703 DCHECK(opacity >= 0.0f);
704 DCHECK(opacity <= 1.0f);
703 native_widget_->SetOpacity(opacity); 705 native_widget_->SetOpacity(opacity);
704 } 706 }
705 707
706 void Widget::FlashFrame(bool flash) { 708 void Widget::FlashFrame(bool flash) {
707 native_widget_->FlashFrame(flash); 709 native_widget_->FlashFrame(flash);
708 } 710 }
709 711
710 View* Widget::GetRootView() { 712 View* Widget::GetRootView() {
711 return root_view_.get(); 713 return root_view_.get();
712 } 714 }
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 1544
1543 //////////////////////////////////////////////////////////////////////////////// 1545 ////////////////////////////////////////////////////////////////////////////////
1544 // internal::NativeWidgetPrivate, NativeWidget implementation: 1546 // internal::NativeWidgetPrivate, NativeWidget implementation:
1545 1547
1546 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1548 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1547 return this; 1549 return this;
1548 } 1550 }
1549 1551
1550 } // namespace internal 1552 } // namespace internal
1551 } // namespace views 1553 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698