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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: remove test friends 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 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Override this function to display an extra view adjacent to the buttons. 51 // Override this function to display an extra view adjacent to the buttons.
52 // Overrides may construct the view; this will only be called once per dialog. 52 // Overrides may construct the view; this will only be called once per dialog.
53 virtual View* CreateExtraView(); 53 virtual View* CreateExtraView();
54 54
55 // Override this function to adjust the padding between the extra view and 55 // Override this function to adjust the padding between the extra view and
56 // the confirm/cancel buttons. Note that if there are no buttons, this will 56 // the confirm/cancel buttons. Note that if there are no buttons, this will
57 // not be used. 57 // not be used.
58 // If a custom padding should be used, returns true and populates |padding|. 58 // If a custom padding should be used, returns true and populates |padding|.
59 virtual bool GetExtraViewPadding(int* padding); 59 virtual bool GetExtraViewPadding(int* padding);
60 60
61 // Returns true if the extra view should be grouped with the ok/cancel
62 // buttons, false if it should be aligned to the other edge.
63 virtual bool GroupExtraViewWithButtons() const;
64
61 // Override this function to display a footnote view below the buttons. 65 // Override this function to display a footnote view below the buttons.
62 // Overrides may construct the view; this will only be called once per dialog. 66 // Overrides may construct the view; this will only be called once per dialog.
63 virtual View* CreateFootnoteView(); 67 virtual View* CreateFootnoteView();
64 68
65 // For Dialog boxes, if there is a "Cancel" button or no dialog button at all, 69 // For Dialog boxes, if there is a "Cancel" button or no dialog button at all,
66 // this is called when the user presses the "Cancel" button. 70 // this is called when the user presses the "Cancel" button.
67 // It can also be called on a close action if |Close| has not been 71 // It can also be called on a close action if |Close| has not been
68 // overridden. This function should return true if the window can be closed 72 // overridden. This function should return true if the window can be closed
69 // after it returns, or false if it must remain open. 73 // after it returns, or false if it must remain open.
70 virtual bool Cancel(); 74 virtual bool Cancel();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void ViewHierarchyChanged( 153 void ViewHierarchyChanged(
150 const ViewHierarchyChangedDetails& details) override; 154 const ViewHierarchyChangedDetails& details) override;
151 155
152 private: 156 private:
153 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 157 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
154 }; 158 };
155 159
156 } // namespace views 160 } // namespace views
157 161
158 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 162 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698