| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BUG_REPORT_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BUG_REPORT_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/net/url_fetcher.h" | 8 #include "chrome/browser/net/url_fetcher.h" |
| 9 #include "chrome/views/controls/combo_box.h" | 9 #include "chrome/views/controls/combo_box.h" |
| 10 #include "chrome/views/controls/text_field.h" | 10 #include "chrome/views/controls/text_field.h" |
| 11 #include "chrome/views/view.h" | 11 #include "chrome/views/view.h" |
| 12 #include "chrome/views/window/dialog_delegate.h" | 12 #include "chrome/views/window/dialog_delegate.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 class Checkbox; | 16 class Checkbox; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 void set_png_data(std::vector<unsigned char> *png_data) { | 45 void set_png_data(std::vector<unsigned char> *png_data) { |
| 46 png_data_.reset(png_data); | 46 png_data_.reset(png_data); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 // Overridden from views::View: | 49 // Overridden from views::View: |
| 50 virtual gfx::Size GetPreferredSize(); | 50 virtual gfx::Size GetPreferredSize(); |
| 51 | 51 |
| 52 // views::TextField::Controller implementation: | 52 // views::TextField::Controller implementation: |
| 53 virtual void ContentsChanged(views::TextField* sender, | 53 virtual void ContentsChanged(views::TextField* sender, |
| 54 const std::wstring& new_contents); | 54 const std::wstring& new_contents); |
| 55 virtual void HandleKeystroke(views::TextField* sender, | 55 virtual bool HandleKeystroke(views::TextField* sender, |
| 56 UINT message, TCHAR key, | 56 UINT message, TCHAR key, |
| 57 UINT repeat_count, UINT flags); | 57 UINT repeat_count, UINT flags); |
| 58 | 58 |
| 59 // views::ComboBox::Listener implementation: | 59 // views::ComboBox::Listener implementation: |
| 60 virtual void ItemChanged(views::ComboBox* combo_box, int prev_index, | 60 virtual void ItemChanged(views::ComboBox* combo_box, int prev_index, |
| 61 int new_index); | 61 int new_index); |
| 62 | 62 |
| 63 // Overridden from views::DialogDelegate: | 63 // Overridden from views::DialogDelegate: |
| 64 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; | 64 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; |
| 65 virtual int GetDefaultDialogButton() const; | 65 virtual int GetDefaultDialogButton() const; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 TabContents* tab_; | 113 TabContents* tab_; |
| 114 | 114 |
| 115 // Used to distinguish the report type: Phishing or other. | 115 // Used to distinguish the report type: Phishing or other. |
| 116 int problem_type_; | 116 int problem_type_; |
| 117 | 117 |
| 118 // Save the description the user types in when we clear the dialog for the | 118 // Save the description the user types in when we clear the dialog for the |
| 119 // phishing option. If the user changes the report type back, we reinstate | 119 // phishing option. If the user changes the report type back, we reinstate |
| 120 // their original text so they don't have to type it again. | 120 // their original text so they don't have to type it again. |
| 121 std::wstring old_report_text_; | 121 std::wstring old_report_text_; |
| 122 | 122 |
| 123 DISALLOW_EVIL_CONSTRUCTORS(BugReportView); | 123 DISALLOW_COPY_AND_ASSIGN(BugReportView); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_VIEWS_BUGREPORT_VIEW_H_ | 126 #endif // CHROME_BROWSER_VIEWS_BUG_REPORT_VIEW_H_ |
| OLD | NEW |