| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_OPTIONS_COOKIES_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_COOKIES_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_COOKIES_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_COOKIES_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // views::TreeViewController implementation. | 71 // views::TreeViewController implementation. |
| 72 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); | 72 virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); |
| 73 | 73 |
| 74 // views::TreeViewController implementation. | 74 // views::TreeViewController implementation. |
| 75 virtual void OnTreeViewKeyDown(app::KeyboardCode keycode); | 75 virtual void OnTreeViewKeyDown(app::KeyboardCode keycode); |
| 76 | 76 |
| 77 // views::Textfield::Controller implementation. | 77 // views::Textfield::Controller implementation. |
| 78 virtual void ContentsChanged(views::Textfield* sender, | 78 virtual void ContentsChanged(views::Textfield* sender, |
| 79 const std::wstring& new_contents); | 79 const std::wstring& new_contents); |
| 80 virtual bool HandleKeystroke(views::Textfield* sender, | 80 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 81 const views::Textfield::Keystroke& key); | 81 const views::KeyEvent& key); |
| 82 | 82 |
| 83 // views::WindowDelegate implementation. | 83 // views::WindowDelegate implementation. |
| 84 virtual int GetDialogButtons() const { | 84 virtual int GetDialogButtons() const { |
| 85 return MessageBoxFlags::DIALOGBUTTON_CANCEL; | 85 return MessageBoxFlags::DIALOGBUTTON_CANCEL; |
| 86 } | 86 } |
| 87 virtual views::View* GetInitiallyFocusedView() { | 87 virtual views::View* GetInitiallyFocusedView() { |
| 88 return search_field_; | 88 return search_field_; |
| 89 } | 89 } |
| 90 | 90 |
| 91 virtual bool CanResize() const { return true; } | 91 virtual bool CanResize() const { return true; } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 ScopedRunnableMethodFactory<CookiesView> search_update_factory_; | 150 ScopedRunnableMethodFactory<CookiesView> search_update_factory_; |
| 151 | 151 |
| 152 // Our containing window. If this is non-NULL there is a visible Cookies | 152 // Our containing window. If this is non-NULL there is a visible Cookies |
| 153 // window somewhere. | 153 // window somewhere. |
| 154 static views::Window* instance_; | 154 static views::Window* instance_; |
| 155 | 155 |
| 156 DISALLOW_COPY_AND_ASSIGN(CookiesView); | 156 DISALLOW_COPY_AND_ASSIGN(CookiesView); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_COOKIES_VIEW_H_ | 159 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_COOKIES_VIEW_H_ |
| OLD | NEW |