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

Side by Side Diff: chrome/browser/views/bug_report_view.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_BUGREPORT_VIEW_H__ 5 #ifndef CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H__
6 #define CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H__ 6 #define CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H__
7 7
8 #include "chrome/browser/url_fetcher.h" 8 #include "chrome/browser/url_fetcher.h"
9 #include "chrome/views/combo_box.h" 9 #include "chrome/views/combo_box.h"
10 #include "chrome/views/dialog_delegate.h" 10 #include "chrome/views/dialog_delegate.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 explicit BugReportView(Profile* profile, TabContents* tab); 42 explicit BugReportView(Profile* profile, TabContents* tab);
43 virtual ~BugReportView(); 43 virtual ~BugReportView();
44 44
45 void set_version(const std::wstring& version) { version_ = version; } 45 void set_version(const std::wstring& version) { version_ = version; }
46 // NOTE: set_png_data takes ownership of the vector 46 // NOTE: set_png_data takes ownership of the vector
47 void set_png_data(std::vector<unsigned char> *png_data) { 47 void set_png_data(std::vector<unsigned char> *png_data) {
48 png_data_.reset(png_data); 48 png_data_.reset(png_data);
49 }; 49 };
50 50
51 // Overridden from ChromeViews::View: 51 // Overridden from ChromeViews::View:
52 virtual void GetPreferredSize(CSize *out); 52 virtual gfx::Size GetPreferredSize();
53 53
54 // ChromeViews::TextField::Controller implementation: 54 // ChromeViews::TextField::Controller implementation:
55 virtual void ContentsChanged(ChromeViews::TextField* sender, 55 virtual void ContentsChanged(ChromeViews::TextField* sender,
56 const std::wstring& new_contents); 56 const std::wstring& new_contents);
57 virtual void HandleKeystroke(ChromeViews::TextField* sender, 57 virtual void HandleKeystroke(ChromeViews::TextField* sender,
58 UINT message, TCHAR key, 58 UINT message, TCHAR key,
59 UINT repeat_count, UINT flags); 59 UINT repeat_count, UINT flags);
60 60
61 // ChromeViews::ComboBox::Listener implementation: 61 // ChromeViews::ComboBox::Listener implementation:
62 virtual void ItemChanged(ChromeViews::ComboBox* combo_box, 62 virtual void ItemChanged(ChromeViews::ComboBox* combo_box,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Save the description the user types in when we clear the dialog for the 120 // Save the description the user types in when we clear the dialog for the
121 // phishing option. If the user changes the report type back, we reinstate 121 // phishing option. If the user changes the report type back, we reinstate
122 // their original text so they don't have to type it again. 122 // their original text so they don't have to type it again.
123 std::wstring old_report_text_; 123 std::wstring old_report_text_;
124 124
125 DISALLOW_EVIL_CONSTRUCTORS(BugReportView); 125 DISALLOW_EVIL_CONSTRUCTORS(BugReportView);
126 }; 126 };
127 127
128 #endif // CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H__ 128 #endif // CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H__
129 129
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698