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

Side by Side Diff: chrome/browser/ui/views/options/cookies_view.h

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR Created 9 years, 11 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/options/cookies_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698