| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/find_bar/find_bar.h" | 9 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 10 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, | 57 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, |
| 58 bool no_redraw); | 58 bool no_redraw); |
| 59 virtual void SetFindText(const string16& find_text); | 59 virtual void SetFindText(const string16& find_text); |
| 60 virtual void UpdateUIForFindResult(const FindNotificationDetails& result, | 60 virtual void UpdateUIForFindResult(const FindNotificationDetails& result, |
| 61 const string16& find_text); | 61 const string16& find_text); |
| 62 virtual void AudibleAlert(); | 62 virtual void AudibleAlert(); |
| 63 virtual bool IsFindBarVisible(); | 63 virtual bool IsFindBarVisible(); |
| 64 virtual void RestoreSavedFocus(); | 64 virtual void RestoreSavedFocus(); |
| 65 virtual FindBarTesting* GetFindBarTesting(); | 65 virtual FindBarTesting* GetFindBarTesting(); |
| 66 | 66 |
| 67 // Overridden from views::AcceleratorTarget in DropdownBarHost class: | 67 // Overridden from ui::AcceleratorTarget in DropdownBarHost class: |
| 68 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 68 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator); |
| 69 | 69 |
| 70 // FindBarTesting implementation: | 70 // FindBarTesting implementation: |
| 71 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 71 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 72 bool* fully_visible); | 72 bool* fully_visible); |
| 73 virtual string16 GetFindText(); | 73 virtual string16 GetFindText(); |
| 74 virtual string16 GetFindSelectedText(); | 74 virtual string16 GetFindSelectedText(); |
| 75 virtual string16 GetMatchCountText(); | 75 virtual string16 GetMatchCountText(); |
| 76 virtual int GetWidth(); | 76 virtual int GetWidth(); |
| 77 | 77 |
| 78 // Overridden from DropdownBarHost: | 78 // Overridden from DropdownBarHost: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Returns the FindBarView. | 123 // Returns the FindBarView. |
| 124 FindBarView* find_bar_view(); | 124 FindBarView* find_bar_view(); |
| 125 | 125 |
| 126 // A pointer back to the owning controller. | 126 // A pointer back to the owning controller. |
| 127 FindBarController* find_bar_controller_; | 127 FindBarController* find_bar_controller_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(FindBarHost); | 129 DISALLOW_COPY_AND_ASSIGN(FindBarHost); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ |
| OLD | NEW |