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

Side by Side Diff: ui/views/bubble/tray_bubble_view.cc

Issue 24469006: Fixing crash Report - Magic Signature: views::View::ConvertPointToScreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A self check encountered a few things.. Created 7 years, 2 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 | Annotate | Revision Log
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/bubble/tray_bubble_view.h" 5 #include "ui/views/bubble/tray_bubble_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 params_(init_params), 320 params_(init_params),
321 delegate_(delegate), 321 delegate_(delegate),
322 preferred_width_(init_params.min_width), 322 preferred_width_(init_params.min_width),
323 bubble_border_(NULL), 323 bubble_border_(NULL),
324 is_gesture_dragging_(false), 324 is_gesture_dragging_(false),
325 mouse_actively_entered_(false) { 325 mouse_actively_entered_(false) {
326 set_parent_window(parent_window); 326 set_parent_window(parent_window);
327 set_notify_enter_exit_on_child(true); 327 set_notify_enter_exit_on_child(true);
328 set_close_on_deactivate(init_params.close_on_deactivate); 328 set_close_on_deactivate(init_params.close_on_deactivate);
329 set_margins(gfx::Insets()); 329 set_margins(gfx::Insets());
330 bubble_border_ = new TrayBubbleBorder(this, anchor_view(), params_); 330 bubble_border_ = new TrayBubbleBorder(this, AnchorView(), params_);
331 if (get_use_acceleration_when_possible()) { 331 if (get_use_acceleration_when_possible()) {
332 SetPaintToLayer(true); 332 SetPaintToLayer(true);
333 SetFillsBoundsOpaquely(true); 333 SetFillsBoundsOpaquely(true);
334 334
335 bubble_content_mask_.reset( 335 bubble_content_mask_.reset(
336 new TrayBubbleContentMask(bubble_border_->GetBorderCornerRadius())); 336 new TrayBubbleContentMask(bubble_border_->GetBorderCornerRadius()));
337 } 337 }
338 } 338 }
339 339
340 TrayBubbleView::~TrayBubbleView() { 340 TrayBubbleView::~TrayBubbleView() {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 const ViewHierarchyChangedDetails& details) { 501 const ViewHierarchyChangedDetails& details) {
502 if (get_use_acceleration_when_possible() && details.is_add && 502 if (get_use_acceleration_when_possible() && details.is_add &&
503 details.child == this) { 503 details.child == this) {
504 details.parent->SetPaintToLayer(true); 504 details.parent->SetPaintToLayer(true);
505 details.parent->SetFillsBoundsOpaquely(true); 505 details.parent->SetFillsBoundsOpaquely(true);
506 details.parent->layer()->SetMasksToBounds(true); 506 details.parent->layer()->SetMasksToBounds(true);
507 } 507 }
508 } 508 }
509 509
510 } // namespace views 510 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698