| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void UpdateForResult(const FindNotificationDetails& result, | 60 void UpdateForResult(const FindNotificationDetails& result, |
| 61 const string16& find_text); | 61 const string16& find_text); |
| 62 | 62 |
| 63 // Clears the current Match Count value in the Find text box. | 63 // Clears the current Match Count value in the Find text box. |
| 64 void ClearMatchCount(); | 64 void ClearMatchCount(); |
| 65 | 65 |
| 66 // Claims focus for the text field and selects its contents. | 66 // Claims focus for the text field and selects its contents. |
| 67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; | 67 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; |
| 68 | 68 |
| 69 // views::View: | 69 // views::View: |
| 70 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 70 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
| 71 virtual void Layout() OVERRIDE; | 71 virtual void Layout() OVERRIDE; |
| 72 virtual gfx::Size GetPreferredSize() OVERRIDE; | 72 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 73 virtual void ViewHierarchyChanged(bool is_add, | 73 virtual void ViewHierarchyChanged(bool is_add, |
| 74 views::View* parent, | 74 views::View* parent, |
| 75 views::View* child) OVERRIDE; | 75 views::View* child) OVERRIDE; |
| 76 | 76 |
| 77 // views::ButtonListener: | 77 // views::ButtonListener: |
| 78 virtual void ButtonPressed(views::Button* sender, | 78 virtual void ButtonPressed(views::Button* sender, |
| 79 const views::Event& event) OVERRIDE; | 79 const views::Event& event) OVERRIDE; |
| 80 | 80 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // box to provide the Chrome look to the edge of the text box. | 143 // box to provide the Chrome look to the edge of the text box. |
| 144 const SkBitmap* text_box_background_; | 144 const SkBitmap* text_box_background_; |
| 145 | 145 |
| 146 // The rounded edge on the left side of the Find text box. | 146 // The rounded edge on the left side of the Find text box. |
| 147 const SkBitmap* text_box_background_left_; | 147 const SkBitmap* text_box_background_left_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 149 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 152 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| OLD | NEW |