| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/find_bar/find_bar.h" | 10 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 11 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 11 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
| 12 #include "content/public/browser/render_view_host_delegate.h" | 12 #include "content/public/browser/render_view_host_delegate.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 #include "ui/views/controls/textfield/textfield.h" | 15 #include "ui/views/controls/textfield/textfield.h" |
| 16 | 16 |
| 17 class BrowserView; | 17 class BrowserView; |
| 18 class FindBarController; | 18 class FindBarController; |
| 19 class FindBarView; | 19 class FindBarView; |
| 20 class FindNotificationDetails; | 20 class FindNotificationDetails; |
| 21 | 21 |
| 22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
| 23 // | 23 // |
| 24 // The FindBarHost implements the container widget for the | 24 // The FindBarHost implements the container widget for the |
| 25 // find-in-page functionality. It uses the appropriate implementation from | 25 // find-in-page functionality. It uses the appropriate implementation from |
| 26 // find_bar_host_win.cc or find_bar_host_gtk.cc to draw its content and is | 26 // find_bar_host_win.cc or find_bar_host_aura.cc to draw its content and is |
| 27 // responsible for showing, hiding, closing, and moving the widget if needed, | 27 // responsible for showing, hiding, closing, and moving the widget if needed, |
| 28 // for example if the widget is obscuring the selection results. It also | 28 // for example if the widget is obscuring the selection results. It also |
| 29 // receives notifications about the search results and communicates that to | 29 // receives notifications about the search results and communicates that to |
| 30 // the view. | 30 // the view. |
| 31 // | 31 // |
| 32 // There is one FindBarHost per BrowserView, and its state is updated | 32 // There is one FindBarHost per BrowserView, and its state is updated |
| 33 // whenever the selected Tab is changed. The FindBarHost is created when | 33 // whenever the selected Tab is changed. The FindBarHost is created when |
| 34 // the BrowserView is attached to the frame's Widget for the first time. | 34 // the BrowserView is attached to the frame's Widget for the first time. |
| 35 // | 35 // |
| 36 //////////////////////////////////////////////////////////////////////////////// | 36 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // Returns the FindBarView. | 128 // Returns the FindBarView. |
| 129 FindBarView* find_bar_view(); | 129 FindBarView* find_bar_view(); |
| 130 | 130 |
| 131 // A pointer back to the owning controller. | 131 // A pointer back to the owning controller. |
| 132 FindBarController* find_bar_controller_; | 132 FindBarController* find_bar_controller_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(FindBarHost); | 134 DISALLOW_COPY_AND_ASSIGN(FindBarHost); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ | 137 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ |
| OLD | NEW |