| OLD | NEW |
| 1 // Copyright (c) 2010 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_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_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" |
| 11 | 11 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void RestoreSavedFocus(); | 64 virtual void RestoreSavedFocus(); |
| 65 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, | 65 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, |
| 66 bool no_redraw); | 66 bool no_redraw); |
| 67 | 67 |
| 68 // Methods from FindBarTesting. | 68 // Methods from FindBarTesting. |
| 69 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 69 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 70 bool* fully_visible); | 70 bool* fully_visible); |
| 71 virtual string16 GetFindText(); | 71 virtual string16 GetFindText(); |
| 72 virtual string16 GetFindSelectedText(); | 72 virtual string16 GetFindSelectedText(); |
| 73 virtual string16 GetMatchCountText(); | 73 virtual string16 GetMatchCountText(); |
| 74 virtual int GetWidth(); |
| 74 | 75 |
| 75 // Used to disable find bar animations when testing. | 76 // Used to disable find bar animations when testing. |
| 76 static bool disable_animations_during_testing_; | 77 static bool disable_animations_during_testing_; |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 // Pointer to the cocoa controller which manages the cocoa view. Is | 80 // Pointer to the cocoa controller which manages the cocoa view. Is |
| 80 // never nil. | 81 // never nil. |
| 81 FindBarCocoaController* cocoa_controller_; | 82 FindBarCocoaController* cocoa_controller_; |
| 82 | 83 |
| 83 // Pointer back to the owning controller. | 84 // Pointer back to the owning controller. |
| 84 FindBarController* find_bar_controller_; // weak, owns us | 85 FindBarController* find_bar_controller_; // weak, owns us |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); | 87 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ | 90 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ |
| OLD | NEW |