| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_FIND_IN_PAGE_VIEW_H__ | 5 #ifndef CHROME_BROWSER_FIND_IN_PAGE_VIEW_H__ |
| 6 #define CHROME_BROWSER_FIND_IN_PAGE_VIEW_H__ | 6 #define CHROME_BROWSER_FIND_IN_PAGE_VIEW_H__ |
| 7 | 7 |
| 8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
| 9 #include "chrome/views/button.h" | 9 #include "chrome/views/button.h" |
| 10 #include "chrome/views/text_field.h" | 10 #include "chrome/views/text_field.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Updates the view to let it know where the controller is clipping the | 64 // Updates the view to let it know where the controller is clipping the |
| 65 // Find window (while animating the opening or closing of the window). | 65 // Find window (while animating the opening or closing of the window). |
| 66 void animation_offset(int offset) { animation_offset_ = offset; } | 66 void animation_offset(int offset) { animation_offset_ = offset; } |
| 67 | 67 |
| 68 // Overridden from ChromeViews::View: | 68 // Overridden from ChromeViews::View: |
| 69 virtual void Paint(ChromeCanvas* canvas); | 69 virtual void Paint(ChromeCanvas* canvas); |
| 70 virtual void Layout(); | 70 virtual void Layout(); |
| 71 virtual void DidChangeBounds(const CRect& old_bounds, | 71 virtual void DidChangeBounds(const CRect& old_bounds, |
| 72 const CRect& new_bounds); | 72 const CRect& new_bounds); |
| 73 virtual void GetPreferredSize(CSize* out); | 73 virtual gfx::Size GetPreferredSize(); |
| 74 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 74 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 75 | 75 |
| 76 // Overridden from ChromeViews::ButtonListener::ButtonPressed: | 76 // Overridden from ChromeViews::ButtonListener::ButtonPressed: |
| 77 virtual void ButtonPressed(ChromeViews::BaseButton* sender); | 77 virtual void ButtonPressed(ChromeViews::BaseButton* sender); |
| 78 | 78 |
| 79 // Overridden from ChromeViews::TextField::Controller: | 79 // Overridden from ChromeViews::TextField::Controller: |
| 80 virtual void ContentsChanged(ChromeViews::TextField* sender, | 80 virtual void ContentsChanged(ChromeViews::TextField* sender, |
| 81 const std::wstring& new_contents); | 81 const std::wstring& new_contents); |
| 82 virtual void HandleKeystroke(ChromeViews::TextField* sender, UINT message, | 82 virtual void HandleKeystroke(ChromeViews::TextField* sender, UINT message, |
| 83 TCHAR key, UINT repeat_count, UINT flags); | 83 TCHAR key, UINT repeat_count, UINT flags); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 int match_count_; | 132 int match_count_; |
| 133 | 133 |
| 134 // The ordinal of the currently active match. | 134 // The ordinal of the currently active match. |
| 135 int active_match_ordinal_; | 135 int active_match_ordinal_; |
| 136 | 136 |
| 137 DISALLOW_EVIL_CONSTRUCTORS(FindInPageView); | 137 DISALLOW_EVIL_CONSTRUCTORS(FindInPageView); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_FIND_IN_PAGE_VIEW_H__ | 140 #endif // CHROME_BROWSER_FIND_IN_PAGE_VIEW_H__ |
| 141 | 141 |
| OLD | NEW |