| 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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/ui/views/dropdown_bar_view.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_view.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::Canvas* 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( | |
| 74 const ViewHierarchyChangedDetails& details) OVERRIDE; | |
| 75 | 73 |
| 76 // views::ButtonListener: | 74 // views::ButtonListener: |
| 77 virtual void ButtonPressed(views::Button* sender, | 75 virtual void ButtonPressed(views::Button* sender, |
| 78 const ui::Event& event) OVERRIDE; | 76 const ui::Event& event) OVERRIDE; |
| 79 | 77 |
| 80 // views::TextfieldController: | 78 // views::TextfieldController: |
| 81 virtual bool HandleKeyEvent(views::Textfield* sender, | 79 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 82 const ui::KeyEvent& key_event) OVERRIDE; | 80 const ui::KeyEvent& key_event) OVERRIDE; |
| 83 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; | 81 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; |
| 84 virtual void OnAfterPaste() OVERRIDE; | 82 virtual void OnAfterPaste() OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // box to provide the Chrome look to the edge of the text box. | 134 // box to provide the Chrome look to the edge of the text box. |
| 137 const gfx::ImageSkia* text_box_background_; | 135 const gfx::ImageSkia* text_box_background_; |
| 138 | 136 |
| 139 // The rounded edge on the left side of the Find text box. | 137 // The rounded edge on the left side of the Find text box. |
| 140 const gfx::ImageSkia* text_box_background_left_; | 138 const gfx::ImageSkia* text_box_background_left_; |
| 141 | 139 |
| 142 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 140 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
| 143 }; | 141 }; |
| 144 | 142 |
| 145 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 143 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| OLD | NEW |