OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |