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

Side by Side Diff: chrome/browser/ui/views/find_bar_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add two more const for Windows. Created 6 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FIND_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Clears the current Match Count value in the Find text box. 64 // Clears the current Match Count value in the Find text box.
65 void ClearMatchCount(); 65 void ClearMatchCount();
66 66
67 // Claims focus for the text field and selects its contents. 67 // Claims focus for the text field and selects its contents.
68 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; 68 virtual void SetFocusAndSelection(bool select_all) OVERRIDE;
69 69
70 // views::View: 70 // views::View:
71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
72 virtual void Layout() OVERRIDE; 72 virtual void Layout() OVERRIDE;
73 virtual gfx::Size GetPreferredSize() OVERRIDE; 73 virtual gfx::Size GetPreferredSize() const OVERRIDE;
74 74
75 // views::ButtonListener: 75 // views::ButtonListener:
76 virtual void ButtonPressed(views::Button* sender, 76 virtual void ButtonPressed(views::Button* sender,
77 const ui::Event& event) OVERRIDE; 77 const ui::Event& event) OVERRIDE;
78 78
79 // views::TextfieldController: 79 // views::TextfieldController:
80 virtual bool HandleKeyEvent(views::Textfield* sender, 80 virtual bool HandleKeyEvent(views::Textfield* sender,
81 const ui::KeyEvent& key_event) OVERRIDE; 81 const ui::KeyEvent& key_event) OVERRIDE;
82 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; 82 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE;
83 virtual void OnAfterPaste() OVERRIDE; 83 virtual void OnAfterPaste() OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 views::ImageButton* find_next_button_; 129 views::ImageButton* find_next_button_;
130 views::ImageButton* close_button_; 130 views::ImageButton* close_button_;
131 131
132 // The preferred height of the find bar. 132 // The preferred height of the find bar.
133 int preferred_height_; 133 int preferred_height_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(FindBarView); 135 DISALLOW_COPY_AND_ASSIGN(FindBarView);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ 138 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698