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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 2633183002: Linux/Windows: Remove NonInteractiveContainer from the profile chooser. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 4cb0ca6cf201d885d0c5d6d9755ad8245dc36ddc..3bf29f000327a5063872346ef0afdd473fb3b1fc 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -240,20 +240,6 @@ class SizedContainer : public views::View {
gfx::Size preferred_size_;
};
-// NonInteractiveContainer -------------------------------------------------
-
-// A simple container view that does not process events within subtree.
-class NonInteractiveContainer : public views::View {
- public:
- NonInteractiveContainer() {}
-
- // views::CanProcessEventsWithinSubtree:
- bool CanProcessEventsWithinSubtree() const override { return false; }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NonInteractiveContainer);
-};
-
// A view to host the GAIA webview overlapped with a back button. This class
// is needed to reparent the back button inside a native view so that on
// windows, user input can be be properly routed to the button.
@@ -1685,8 +1671,7 @@ views::View* ProfileChooserView::CreateMaterialDesignCurrentProfileView(
ui::ResourceBundle::GetSharedInstance().GetFontListWithDelta(
1, gfx::Font::FontStyle::NORMAL, gfx::Font::Weight::MEDIUM));
current_profile_name->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- NonInteractiveContainer* profile_name_container =
- new NonInteractiveContainer();
+ views::View* profile_name_container = new views::View();
int name_container_v_spacing =
(current_profile_photo->GetPreferredSize().height() -
current_profile_name->GetPreferredSize().height()) / 2;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698