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

Side by Side Diff: chrome/browser/ui/views/url_picker.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_URL_PICKER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_
6 #define CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/controls/button/native_button.h" 9 #include "views/controls/button/native_button.h"
10 #include "views/controls/table/table_view_observer.h" 10 #include "views/controls/table/table_view_observer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 MessageBoxFlags::DialogButton button) const; 62 MessageBoxFlags::DialogButton button) const;
63 virtual bool Accept(); 63 virtual bool Accept();
64 virtual int GetDefaultDialogButton() const; 64 virtual int GetDefaultDialogButton() const;
65 virtual bool IsDialogButtonEnabled( 65 virtual bool IsDialogButtonEnabled(
66 MessageBoxFlags::DialogButton button) const; 66 MessageBoxFlags::DialogButton button) const;
67 virtual views::View* GetContentsView(); 67 virtual views::View* GetContentsView();
68 68
69 // TextField::Controller. 69 // TextField::Controller.
70 virtual void ContentsChanged(views::Textfield* sender, 70 virtual void ContentsChanged(views::Textfield* sender,
71 const std::wstring& new_contents); 71 const std::wstring& new_contents);
72 virtual bool HandleKeystroke(views::Textfield* sender, 72 virtual bool HandleKeyEvent(views::Textfield* sender,
73 const views::Textfield::Keystroke& key) { 73 const views::KeyEvent& key_event) {
74 return false; 74 return false;
75 } 75 }
76 76
77 // Overridden from View. 77 // Overridden from View.
78 virtual gfx::Size GetPreferredSize(); 78 virtual gfx::Size GetPreferredSize();
79 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); 79 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
80 80
81 // TableViewObserver. 81 // TableViewObserver.
82 virtual void OnSelectionChanged(); 82 virtual void OnSelectionChanged();
83 virtual void OnDoubleClick(); 83 virtual void OnDoubleClick();
(...skipping 17 matching lines...) Expand all
101 // The table of visited urls. 101 // The table of visited urls.
102 views::TableView* url_table_; 102 views::TableView* url_table_;
103 103
104 // The delegate. 104 // The delegate.
105 UrlPickerDelegate* delegate_; 105 UrlPickerDelegate* delegate_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(UrlPicker); 107 DISALLOW_COPY_AND_ASSIGN(UrlPicker);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_ 110 #endif // CHROME_BROWSER_UI_VIEWS_URL_PICKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/options/general_page_view.cc ('k') | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698