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

Side by Side Diff: chrome/browser/views/shelf_item_dialog.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_SHELF_ITEM_DIALOG_H__ 5 #ifndef CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__
6 #define CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__ 6 #define CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__
7 7
8 #include "chrome/browser/cancelable_request.h" 8 #include "chrome/browser/cancelable_request.h"
9 #include "chrome/browser/history/history.h" 9 #include "chrome/browser/history/history.h"
10 #include "chrome/views/dialog_delegate.h" 10 #include "chrome/views/dialog_delegate.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // TextField::Controller. 68 // TextField::Controller.
69 virtual void ContentsChanged(ChromeViews::TextField* sender, 69 virtual void ContentsChanged(ChromeViews::TextField* sender,
70 const std::wstring& new_contents); 70 const std::wstring& new_contents);
71 virtual void HandleKeystroke(ChromeViews::TextField* sender, 71 virtual void HandleKeystroke(ChromeViews::TextField* sender,
72 UINT message, TCHAR key, UINT repeat_count, 72 UINT message, TCHAR key, UINT repeat_count,
73 UINT flags) {} 73 UINT flags) {}
74 74
75 // Overridden from View. 75 // Overridden from View.
76 virtual void DidChangeBounds(const CRect& previous, const CRect& current); 76 virtual void DidChangeBounds(const CRect& previous, const CRect& current);
77 virtual void GetPreferredSize(CSize *out); 77 virtual gfx::Size GetPreferredSize();
78 virtual bool AcceleratorPressed(const ChromeViews::Accelerator& accelerator); 78 virtual bool AcceleratorPressed(const ChromeViews::Accelerator& accelerator);
79 79
80 // TableViewObserver. 80 // TableViewObserver.
81 virtual void OnSelectionChanged(); 81 virtual void OnSelectionChanged();
82 virtual void OnDoubleClick(); 82 virtual void OnDoubleClick();
83 83
84 private: 84 private:
85 // Modify the model from the user interface. 85 // Modify the model from the user interface.
86 void PerformModelChange(); 86 void PerformModelChange();
87 87
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 CancelableRequestConsumer history_consumer_; 120 CancelableRequestConsumer history_consumer_;
121 121
122 // The delegate. 122 // The delegate.
123 ShelfItemDialogDelegate* delegate_; 123 ShelfItemDialogDelegate* delegate_;
124 124
125 DISALLOW_EVIL_CONSTRUCTORS(ShelfItemDialog); 125 DISALLOW_EVIL_CONSTRUCTORS(ShelfItemDialog);
126 }; 126 };
127 127
128 #endif // CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__ 128 #endif // CHROME_BROWSER_VIEWS_SHELF_ITEM_DIALOG_H__
129 129
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698