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

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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: comments 4 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN); 570 LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN);
571 // Titles are inset at the top and sides, but not at the bottom. 571 // Titles are inset at the top and sides, but not at the bottom.
572 return gfx::Insets(top, side, 0, side); 572 return gfx::Insets(top, side, 0, side);
573 } 573 }
574 574
575 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const { 575 gfx::Insets ChromeViewsDelegate::GetBubbleDialogMargins() const {
576 return gfx::Insets(LayoutDelegate::Get()->GetMetric( 576 return gfx::Insets(LayoutDelegate::Get()->GetMetric(
577 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN)); 577 LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
578 } 578 }
579 579
580 int ChromeViewsDelegate::GetDialogButtonMinimumWidth() const {
581 return LayoutDelegate::Get()->GetMetric(
582 LayoutDelegate::Metric::DIALOG_BUTTON_MINIMUM_WIDTH);
583 }
584
585 int ChromeViewsDelegate::GetButtonHorizontalPadding() const {
586 return LayoutDelegate::Get()->GetMetric(
587 LayoutDelegate::Metric::BUTTON_HORIZONTAL_PADDING);
588 }
589
580 #if !defined(USE_ASH) 590 #if !defined(USE_ASH)
581 views::Widget::InitParams::WindowOpacity 591 views::Widget::InitParams::WindowOpacity
582 ChromeViewsDelegate::GetOpacityForInitParams( 592 ChromeViewsDelegate::GetOpacityForInitParams(
583 const views::Widget::InitParams& params) { 593 const views::Widget::InitParams& params) {
584 return views::Widget::InitParams::OPAQUE_WINDOW; 594 return views::Widget::InitParams::OPAQUE_WINDOW;
585 } 595 }
586 #endif 596 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698