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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view.h

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 8 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 CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const EditDetails& details, 77 const EditDetails& details,
78 BookmarkEditor::Configuration configuration); 78 BookmarkEditor::Configuration configuration);
79 79
80 ~BookmarkEditorView() override; 80 ~BookmarkEditorView() override;
81 81
82 // views::DialogDelegateView: 82 // views::DialogDelegateView:
83 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 83 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
84 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 84 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
85 views::View* CreateExtraView() override; 85 views::View* CreateExtraView() override;
86 ui::ModalType GetModalType() const override; 86 ui::ModalType GetModalType() const override;
87 gfx::Size GetUnsnappedPreferredSize() const override;
87 bool CanResize() const override; 88 bool CanResize() const override;
88 base::string16 GetWindowTitle() const override; 89 base::string16 GetWindowTitle() const override;
89 bool Accept() override; 90 bool Accept() override;
90 91
91 // views::View: 92 // views::View:
92 gfx::Size GetPreferredSize() const override;
93 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 93 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
94 94
95 // views::TreeViewController: 95 // views::TreeViewController:
96 void OnTreeViewSelectionChanged(views::TreeView* tree_view) override; 96 void OnTreeViewSelectionChanged(views::TreeView* tree_view) override;
97 bool CanEdit(views::TreeView* tree_view, ui::TreeModelNode* node) override; 97 bool CanEdit(views::TreeView* tree_view, ui::TreeModelNode* node) override;
98 98
99 // views::TextfieldController: 99 // views::TextfieldController:
100 void ContentsChanged(views::Textfield* sender, 100 void ContentsChanged(views::Textfield* sender,
101 const base::string16& new_contents) override; 101 const base::string16& new_contents) override;
102 bool HandleKeyEvent(views::Textfield* sender, 102 bool HandleKeyEvent(views::Textfield* sender,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Is the tree shown? 269 // Is the tree shown?
270 bool show_tree_; 270 bool show_tree_;
271 271
272 // List of deleted bookmark folders. 272 // List of deleted bookmark folders.
273 std::vector<int64_t> deletes_; 273 std::vector<int64_t> deletes_;
274 274
275 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView); 275 DISALLOW_COPY_AND_ASSIGN(BookmarkEditorView);
276 }; 276 };
277 277
278 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_ 278 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_EDITOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698