diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 16:18:25 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-03 16:18:25 +0000 |
commit | a326d4afc8ddee0050f616797b5bbed829dd9948 (patch) | |
tree | 2d8069bf4cae0475b741ca231f308725827f5e2a /views/view.h | |
parent | edda6f2964eb176cd35741df9719b275f3d2a622 (diff) | |
download | chromium_src-a326d4afc8ddee0050f616797b5bbed829dd9948.zip chromium_src-a326d4afc8ddee0050f616797b5bbed829dd9948.tar.gz chromium_src-a326d4afc8ddee0050f616797b5bbed829dd9948.tar.bz2 |
views: Convert View::GetID/SetID functions to unix_hacker style.
BUG=72040
TEST=None
R=ben@chromium.org
Review URL: http://codereview.chromium.org/6969087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/view.h b/views/view.h index cc15c5a..27aed3a 100644 --- a/views/view.h +++ b/views/view.h @@ -429,10 +429,10 @@ class View : public AcceleratorTarget { virtual const View* GetViewByID(int id) const; virtual View* GetViewByID(int id); - // Sets and gets the ID for this view. ID should be unique within the subtree - // that you intend to search for it. 0 is the default ID for views. - void SetID(int id); - int GetID() const; + // Gets and sets the ID for this view. ID should be unique within the subtree + // that you intend to search for it. 0 is the default ID for views. + int id() const { return id_; } + void set_id(int id) { id_ = id; } // A group id is used to tag views which are part of the same logical group. // Focus can be moved between views with the same group using the arrow keys. |