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

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

Issue 275183002: patch from issue 218843002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 return false; 1151 return false;
1152 1152
1153 compositor->ScheduleRedrawRect(dirty_region); 1153 compositor->ScheduleRedrawRect(dirty_region);
1154 return true; 1154 return true;
1155 } 1155 }
1156 1156
1157 void Widget::OnNativeWidgetPaint(gfx::Canvas* canvas) { 1157 void Widget::OnNativeWidgetPaint(gfx::Canvas* canvas) {
1158 // On Linux Aura, we can get here during Init() because of the 1158 // On Linux Aura, we can get here during Init() because of the
1159 // SetInitialBounds call. 1159 // SetInitialBounds call.
1160 if (native_widget_initialized_) 1160 if (native_widget_initialized_)
1161 GetRootView()->Paint(canvas); 1161 GetRootView()->Paint(canvas, CullSet());
1162 } 1162 }
1163 1163
1164 int Widget::GetNonClientComponent(const gfx::Point& point) { 1164 int Widget::GetNonClientComponent(const gfx::Point& point) {
1165 int component = non_client_view_ ? 1165 int component = non_client_view_ ?
1166 non_client_view_->NonClientHitTest(point) : 1166 non_client_view_->NonClientHitTest(point) :
1167 HTNOWHERE; 1167 HTNOWHERE;
1168 1168
1169 if (movement_disabled_ && (component == HTCAPTION || component == HTSYSMENU)) 1169 if (movement_disabled_ && (component == HTCAPTION || component == HTSYSMENU))
1170 return HTNOWHERE; 1170 return HTNOWHERE;
1171 1171
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 1511
1512 //////////////////////////////////////////////////////////////////////////////// 1512 ////////////////////////////////////////////////////////////////////////////////
1513 // internal::NativeWidgetPrivate, NativeWidget implementation: 1513 // internal::NativeWidgetPrivate, NativeWidget implementation:
1514 1514
1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1515 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1516 return this; 1516 return this;
1517 } 1517 }
1518 1518
1519 } // namespace internal 1519 } // namespace internal
1520 } // namespace views 1520 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698