| OLD | NEW |
| 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_KEYWORD_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
| 7 | 7 |
| 8 #include <Windows.h> | 8 #include <Windows.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Overridden from EditSearchEngineControllerDelegate. | 49 // Overridden from EditSearchEngineControllerDelegate. |
| 50 // Calls AddTemplateURL or ModifyTemplateURL as appropriate. | 50 // Calls AddTemplateURL or ModifyTemplateURL as appropriate. |
| 51 virtual void OnEditedKeyword(const TemplateURL* template_url, | 51 virtual void OnEditedKeyword(const TemplateURL* template_url, |
| 52 const std::wstring& title, | 52 const std::wstring& title, |
| 53 const std::wstring& keyword, | 53 const std::wstring& keyword, |
| 54 const std::wstring& url); | 54 const std::wstring& url); |
| 55 | 55 |
| 56 // Overriden to invoke Layout. | 56 // Overriden to invoke Layout. |
| 57 virtual gfx::Size GetPreferredSize(); | 57 virtual gfx::Size GetPreferredSize(); |
| 58 | 58 |
| 59 // DialogDelegate methods: | 59 // views::DialogDelegate methods: |
| 60 virtual bool CanResize() const; | 60 virtual bool CanResize() const; |
| 61 virtual std::wstring GetWindowTitle() const; | 61 virtual std::wstring GetWindowTitle() const; |
| 62 virtual std::wstring GetWindowName() const; |
| 62 virtual int GetDialogButtons() const; | 63 virtual int GetDialogButtons() const; |
| 63 virtual bool Accept(); | 64 virtual bool Accept(); |
| 64 virtual bool Cancel(); | 65 virtual bool Cancel(); |
| 65 virtual views::View* GetContentsView(); | 66 virtual views::View* GetContentsView(); |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 void Init(); | 69 void Init(); |
| 69 | 70 |
| 70 // Creates the layout and adds the views to it. | 71 // Creates the layout and adds the views to it. |
| 71 void InitLayoutManager(); | 72 void InitLayoutManager(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 94 views::TableView* table_view_; | 95 views::TableView* table_view_; |
| 95 views::NativeButton* add_button_; | 96 views::NativeButton* add_button_; |
| 96 views::NativeButton* edit_button_; | 97 views::NativeButton* edit_button_; |
| 97 views::NativeButton* remove_button_; | 98 views::NativeButton* remove_button_; |
| 98 views::NativeButton* make_default_button_; | 99 views::NativeButton* make_default_button_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); | 101 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ | 104 #endif // CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
| OLD | NEW |