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

Unified Diff: ash/common/system/chromeos/ime_menu/ime_list_view.cc

Issue 2489883005: Fix a couple issues with sticky headers (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | ash/common/system/chromeos/network/network_list_md.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/ime_menu/ime_list_view.cc
diff --git a/ash/common/system/chromeos/ime_menu/ime_list_view.cc b/ash/common/system/chromeos/ime_menu/ime_list_view.cc
index 4bf2189ee847dd5c4996cf3c728724ecef908d00..cf6d1116f629a3fd2f95a227695c367f0ca1692e 100644
--- a/ash/common/system/chromeos/ime_menu/ime_list_view.cc
+++ b/ash/common/system/chromeos/ime_menu/ime_list_view.cc
@@ -4,7 +4,6 @@
#include "ash/common/system/chromeos/ime_menu/ime_list_view.h"
-#include "ash/common/ash_view_ids.h"
#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/system/tray/hover_highlight_view.h"
#include "ash/common/system/tray/ime_info.h"
@@ -203,8 +202,8 @@ class MaterialKeyboardStatusRowView : public views::View {
private:
void Init() {
+ TrayPopupUtils::ConfigureAsStickyHeader(this);
SetLayoutManager(new views::FillLayout);
- set_background(views::Background::CreateSolidBackground(kBackgroundColor));
TriView* tri_view = TrayPopupUtils::CreateDefaultRowView();
AddChildView(tri_view);
@@ -229,8 +228,6 @@ class MaterialKeyboardStatusRowView : public views::View {
ui::ResourceBundle::GetSharedInstance().GetLocalizedString(
IDS_ASH_STATUS_TRAY_ACCESSIBILITY_VIRTUAL_KEYBOARD));
tri_view->AddView(TriView::Container::END, toggle_);
-
- set_id(VIEW_ID_STICKY_HEADER);
}
// Updates the style of |label_| based on the current native theme.
« no previous file with comments | « no previous file | ash/common/system/chromeos/network/network_list_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698