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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: comments 3 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
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 "chrome/browser/ui/views/chrome_views_delegate.h" 5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN); 573 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN);
574 // Titles are inset at the top and sides, but not at the bottom. 574 // Titles are inset at the top and sides, but not at the bottom.
575 return gfx::Insets(top, side, 0, side); 575 return gfx::Insets(top, side, 0, side);
576 } 576 }
577 577
578 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const { 578 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const {
579 return gfx::Insets(LayoutDelegate::Get()->GetMetric( 579 return gfx::Insets(LayoutDelegate::Get()->GetMetric(
580 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN)); 580 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
581 } 581 }
582 582
583 int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const {
584 return LayoutDelegate::Get()->GetMetric(
585 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH);
586 }
587
583 #if !defined(USE_ASH) 588 #if !defined(USE_ASH)
584 views::Widget::InitParams::WindowOpacity 589 views::Widget::InitParams::WindowOpacity
585 ChromeViewsDelegate::GetOpacityForInitParams( 590 ChromeViewsDelegate::GetOpacityForInitParams(
586 const views::Widget::InitParams& params) { 591 const views::Widget::InitParams& params) {
587 return views::Widget::InitParams::OPAQUE_WINDOW; 592 return views::Widget::InitParams::OPAQUE_WINDOW;
588 } 593 }
589 #endif 594 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698