| OLD | NEW |
| 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_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/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void ViewHierarchyChanged(bool is_add, | 71 virtual void ViewHierarchyChanged(bool is_add, |
| 72 views::View* parent, | 72 views::View* parent, |
| 73 views::View* child); | 73 views::View* child); |
| 74 | 74 |
| 75 // Overridden from views::ButtonListener: | 75 // Overridden from views::ButtonListener: |
| 76 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 76 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| 77 | 77 |
| 78 // Overridden from views::Textfield::Controller: | 78 // Overridden from views::Textfield::Controller: |
| 79 virtual void ContentsChanged(views::Textfield* sender, | 79 virtual void ContentsChanged(views::Textfield* sender, |
| 80 const string16& new_contents); | 80 const string16& new_contents); |
| 81 virtual bool HandleKeystroke(views::Textfield* sender, | 81 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 82 const views::Textfield::Keystroke& key); | 82 const views::KeyEvent& key_event); |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 // Update the appearance for the match count label. | 85 // Update the appearance for the match count label. |
| 86 void UpdateMatchCountAppearance(bool no_match); | 86 void UpdateMatchCountAppearance(bool no_match); |
| 87 | 87 |
| 88 // Overridden from views::View. | 88 // Overridden from views::View. |
| 89 virtual void OnThemeChanged(); | 89 virtual void OnThemeChanged(); |
| 90 | 90 |
| 91 // We use a hidden view to grab mouse clicks and bring focus to the find | 91 // We use a hidden view to grab mouse clicks and bring focus to the find |
| 92 // text box. This is because although the find text box may look like it | 92 // text box. This is because although the find text box may look like it |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 views::Label* match_count_text_; | 139 views::Label* match_count_text_; |
| 140 FocusForwarderView* focus_forwarder_view_; | 140 FocusForwarderView* focus_forwarder_view_; |
| 141 views::ImageButton* find_previous_button_; | 141 views::ImageButton* find_previous_button_; |
| 142 views::ImageButton* find_next_button_; | 142 views::ImageButton* find_next_button_; |
| 143 views::ImageButton* close_button_; | 143 views::ImageButton* close_button_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 145 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 148 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
| OLD | NEW |