Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3225)

Unified Diff: chrome/browser/ui/views/find_bar_view.h

Issue 2441863002: Remove some more !IsModeMaterial code. (Closed)
Patch Set: restore Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_view.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_view.h
diff --git a/chrome/browser/ui/views/find_bar_view.h b/chrome/browser/ui/views/find_bar_view.h
index 5386ec6bc0418ca995783b22a04fac78d25513f7..dc93771c440d4b69cf25784fe429668913381f82 100644
--- a/chrome/browser/ui/views/find_bar_view.h
+++ b/chrome/browser/ui/views/find_bar_view.h
@@ -10,9 +10,10 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/strings/string16.h"
-#include "chrome/browser/ui/views/dropdown_bar_view.h"
+#include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
#include "ui/views/controls/button/vector_icon_button_delegate.h"
#include "ui/views/controls/textfield/textfield_controller.h"
+#include "ui/views/view.h"
#include "ui/views/view_targeter_delegate.h"
class FindBarHost;
@@ -38,7 +39,8 @@ class VectorIconButton;
// button. It communicates the user search words to the FindBarHost.
//
////////////////////////////////////////////////////////////////////////////////
-class FindBarView : public DropdownBarView,
+class FindBarView : public views::View,
+ public DropdownBarHostDelegate,
public views::VectorIconButtonDelegate,
public views::TextfieldController,
public views::ViewTargeterDelegate {
@@ -66,13 +68,13 @@ class FindBarView : public DropdownBarView,
// Clears the current Match Count value in the Find text box.
void ClearMatchCount();
- // Claims focus for the text field and selects its contents.
- void SetFocusAndSelection(bool select_all) override;
-
- // DropdownBarView:
+ // views::View:
void Layout() override;
gfx::Size GetPreferredSize() const override;
+ // DropdownBarHostDelegate:
+ void SetFocusAndSelection(bool select_all) override;
+
// views::VectorIconButtonDelegate:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
SkColor GetVectorIconBaseColor() const override;
@@ -100,9 +102,9 @@ class FindBarView : public DropdownBarView,
// Returns the color for the icons on the buttons per the current NativeTheme.
SkColor GetTextColorForIcon();
- // Returns the OS-specific view for the find bar that acts as an intermediary
+ // The OS-specific view for the find bar that acts as an intermediary
// between us and the WebContentsView.
- FindBarHost* find_bar_host() const;
+ FindBarHost* find_bar_host_;
// Used to detect if the input text, not including the IME composition text,
// has changed or not.
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_view.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698