| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void RegisterAccelerators() override; | 114 void RegisterAccelerators() override; |
| 115 void UnregisterAccelerators() override; | 115 void UnregisterAccelerators() override; |
| 116 | 116 |
| 117 protected: | 117 protected: |
| 118 // Overridden from DropdownBarHost: | 118 // Overridden from DropdownBarHost: |
| 119 void OnVisibilityChanged() override; | 119 void OnVisibilityChanged() override; |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 // Allows implementation to tweak widget position. | 122 // Allows implementation to tweak widget position. |
| 123 void GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect); | 123 void GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect); |
| 124 void SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw); |
| 124 | 125 |
| 125 // Returns the FindBarView. | 126 // Returns the FindBarView. |
| 126 FindBarView* find_bar_view() { return static_cast<FindBarView*>(view()); } | 127 FindBarView* find_bar_view() { return static_cast<FindBarView*>(view()); } |
| 127 | 128 |
| 128 // A pointer back to the owning controller. | 129 // A pointer back to the owning controller. |
| 129 FindBarController* find_bar_controller_; | 130 FindBarController* find_bar_controller_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(FindBarHost); | 132 DISALLOW_COPY_AND_ASSIGN(FindBarHost); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ | 135 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ |
| OLD | NEW |