diff options
Diffstat (limited to 'ui/views/window/dialog_client_view.h')
-rw-r--r-- | ui/views/window/dialog_client_view.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/ui/views/window/dialog_client_view.h b/ui/views/window/dialog_client_view.h index 97c0d9b..6550819 100644 --- a/ui/views/window/dialog_client_view.h +++ b/ui/views/window/dialog_client_view.h @@ -35,21 +35,7 @@ class VIEWS_EXPORT DialogClientView : public ClientView, public ButtonListener, public FocusChangeListener { public: - // Parameters for the internal dialog styling. Default construction - // produces parameters for native dialog styling. - struct VIEWS_EXPORT StyleParams { - StyleParams(); - - int button_vedge_margin; - int button_hedge_margin; - int button_shadow_margin; - int button_content_spacing; - int related_button_hspacing; - }; - - DialogClientView(Widget* widget, - View* contents_view, - const StyleParams ¶ms); + DialogClientView(Widget* widget, View* contents_view); virtual ~DialogClientView(); // Adds the dialog buttons required by the supplied DialogDelegate to the @@ -70,9 +56,6 @@ class VIEWS_EXPORT DialogClientView : public ClientView, TextButton* ok_button() const { return ok_button_; } TextButton* cancel_button() const { return cancel_button_; } - // Creates a StyleParams struct in Chrome style (default is native style). - static StyleParams GetChromeStyleParams(); - // Returns the number of pixels at the bottom of the dialog which are visually // part of the frame, but are actually rendered by the DialogClientView. int GetBottomMargin(); @@ -110,6 +93,17 @@ class VIEWS_EXPORT DialogClientView : public ClientView, const ui::Event& event) OVERRIDE; private: + // Parameters for the internal dialog styling. + struct StyleParams { + StyleParams(); + + int button_vedge_margin; + int button_hedge_margin; + int button_shadow_margin; + int button_content_spacing; + int related_button_hspacing; + }; + // Create a dialog button of the appropriate type. TextButton* CreateDialogButton(ui::DialogButton type, const string16& title); |