| 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_COCOA_FIND_BAR_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/ui/find_bar/find_bar.h" | 10 #include "chrome/browser/ui/find_bar/find_bar.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void AudibleAlert(); | 70 virtual void AudibleAlert(); |
| 71 virtual bool IsFindBarVisible(); | 71 virtual bool IsFindBarVisible(); |
| 72 virtual void RestoreSavedFocus(); | 72 virtual void RestoreSavedFocus(); |
| 73 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, | 73 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, |
| 74 bool no_redraw); | 74 bool no_redraw); |
| 75 | 75 |
| 76 // Methods from FindBarTesting. | 76 // Methods from FindBarTesting. |
| 77 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 77 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 78 bool* fully_visible); | 78 bool* fully_visible); |
| 79 virtual string16 GetFindText(); | 79 virtual string16 GetFindText(); |
| 80 virtual string16 GetFindSelectedText(); |
| 80 virtual string16 GetMatchCountText(); | 81 virtual string16 GetMatchCountText(); |
| 81 | 82 |
| 82 // Used to disable find bar animations when testing. | 83 // Used to disable find bar animations when testing. |
| 83 static bool disable_animations_during_testing_; | 84 static bool disable_animations_during_testing_; |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 // Pointer to the cocoa controller which manages the cocoa view. Is | 87 // Pointer to the cocoa controller which manages the cocoa view. Is |
| 87 // never nil. | 88 // never nil. |
| 88 FindBarCocoaController* cocoa_controller_; | 89 FindBarCocoaController* cocoa_controller_; |
| 89 | 90 |
| 90 // Pointer back to the owning controller. | 91 // Pointer back to the owning controller. |
| 91 FindBarController* find_bar_controller_; // weak, owns us | 92 FindBarController* find_bar_controller_; // weak, owns us |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); | 94 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ | 97 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ |
| OLD | NEW |