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 // This is an interface for the platform specific FindBar. It is responsible | 5 // This is an interface for the platform specific FindBar. It is responsible |
6 // for drawing the FindBar bar on the platform and is owned by the | 6 // for drawing the FindBar bar on the platform and is owned by the |
7 // FindBarController. | 7 // FindBarController. |
8 | 8 |
9 #ifndef CHROME_BROWSER_FIND_BAR_H_ | 9 #ifndef CHROME_BROWSER_FIND_BAR_H_ |
10 #define CHROME_BROWSER_FIND_BAR_H_ | 10 #define CHROME_BROWSER_FIND_BAR_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "gfx/rect.h" | 14 #include "gfx/rect.h" |
15 | 15 |
16 class FindBarController; | 16 class FindBarController; |
17 class FindBarTesting; | 17 class FindBarTesting; |
18 class FindNotificationDetails; | 18 class FindNotificationDetails; |
19 class TabContents; | |
20 | 19 |
21 class FindBar { | 20 class FindBar { |
22 public: | 21 public: |
23 virtual ~FindBar() { } | 22 virtual ~FindBar() { } |
24 | 23 |
25 // Accessor and setter for the FindBarController. | 24 // Accessor and setter for the FindBarController. |
26 virtual FindBarController* GetFindBarController() const = 0; | 25 virtual FindBarController* GetFindBarController() const = 0; |
27 virtual void SetFindBarController( | 26 virtual void SetFindBarController( |
28 FindBarController* find_bar_controller) = 0; | 27 FindBarController* find_bar_controller) = 0; |
29 | 28 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // This is used for UI tests of the find bar. If the find bar is not currently | 86 // This is used for UI tests of the find bar. If the find bar is not currently |
88 // shown (return value of false), the out params will be {(0, 0), false}. | 87 // shown (return value of false), the out params will be {(0, 0), false}. |
89 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 88 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
90 bool* fully_visible) = 0; | 89 bool* fully_visible) = 0; |
91 | 90 |
92 // Gets the search string currently visible in the Find box. | 91 // Gets the search string currently visible in the Find box. |
93 virtual string16 GetFindText() = 0; | 92 virtual string16 GetFindText() = 0; |
94 }; | 93 }; |
95 | 94 |
96 #endif // CHROME_BROWSER_FIND_BAR_H_ | 95 #endif // CHROME_BROWSER_FIND_BAR_H_ |
OLD | NEW |