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

Side by Side Diff: chrome/browser/ui/views/options/exception_editor_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_EXCEPTION_EDITOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTION_EDITOR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTION_EDITOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTION_EDITOR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 MessageBoxFlags::DialogButton button) const; 69 MessageBoxFlags::DialogButton button) const;
70 virtual bool Cancel(); 70 virtual bool Cancel();
71 virtual bool Accept(); 71 virtual bool Accept();
72 virtual views::View* GetContentsView(); 72 virtual views::View* GetContentsView();
73 73
74 // views::Textfield::Controller overrides. Updates whether the user can 74 // views::Textfield::Controller overrides. Updates whether the user can
75 // accept the dialog as well as updating image views showing whether value is 75 // accept the dialog as well as updating image views showing whether value is
76 // valid. 76 // valid.
77 virtual void ContentsChanged(views::Textfield* sender, 77 virtual void ContentsChanged(views::Textfield* sender,
78 const std::wstring& new_contents); 78 const std::wstring& new_contents);
79 virtual bool HandleKeystroke(views::Textfield* sender, 79 virtual bool HandleKeyEvent(views::Textfield* sender,
80 const views::Textfield::Keystroke& key); 80 const views::KeyEvent& key_event);
81 81
82 private: 82 private:
83 void Init(); 83 void Init();
84 84
85 views::Label* CreateLabel(int message_id); 85 views::Label* CreateLabel(int message_id);
86 86
87 // Returns true if we're adding a new item. 87 // Returns true if we're adding a new item.
88 bool is_new() const { return index_ == -1; } 88 bool is_new() const { return index_ == -1; }
89 89
90 bool IsPatternValid(const ContentSettingsPattern& pattern, 90 bool IsPatternValid(const ContentSettingsPattern& pattern,
(...skipping 14 matching lines...) Expand all
105 105
106 views::Textfield* pattern_tf_; 106 views::Textfield* pattern_tf_;
107 views::ImageView* pattern_iv_; 107 views::ImageView* pattern_iv_;
108 views::Combobox* action_cb_; 108 views::Combobox* action_cb_;
109 views::Checkbox* incognito_cb_; 109 views::Checkbox* incognito_cb_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(ExceptionEditorView); 111 DISALLOW_COPY_AND_ASSIGN(ExceptionEditorView);
112 }; 112 };
113 113
114 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTION_EDITOR_VIEW_H_ 114 #endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_EXCEPTION_EDITOR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/options/cookies_view.cc ('k') | chrome/browser/ui/views/options/exception_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698