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

Unified Diff: chrome/browser/chromeos/login/background_view.cc

Issue 6973029: Integrate WebUI Login with cros. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed patch staleness Created 9 years, 7 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/chromeos/login/background_view.h ('k') | chrome/browser/chromeos/login/dom_login_display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/background_view.cc
diff --git a/chrome/browser/chromeos/login/background_view.cc b/chrome/browser/chromeos/login/background_view.cc
index 2f3e05525bcf3e9e96ad7ce606697e2083787622..e3b7363cb78ee8ef2a4987d8bd7e7853b5f0b793 100644
--- a/chrome/browser/chromeos/login/background_view.cc
+++ b/chrome/browser/chromeos/login/background_view.cc
@@ -42,11 +42,6 @@
#include "views/screen.h"
#include "views/window/window.h"
-// X Windows headers have "#define Status int". That interferes with
-// NetworkLibrary header which defines enum "Status".
-#include <X11/cursorfont.h> // NOLINT
-#include <X11/Xcursor/Xcursor.h> // NOLINT
-
using views::Widget;
namespace {
@@ -72,17 +67,6 @@ int GetStepId(size_t step) {
}
}
-// This gets rid of the ugly X default cursor.
-static void ResetXCursor() {
- // TODO(sky): nuke this once new window manager is in place.
- Display* display = ui::GetXDisplay();
- Cursor cursor = XCreateFontCursor(display, XC_left_ptr);
- XID root_window = ui::GetX11RootWindow();
- XSetWindowAttributes attr;
- attr.cursor = cursor;
- XChangeWindowAttributes(display, root_window, CWCursor, &attr);
-}
-
} // namespace
namespace chromeos {
@@ -96,7 +80,6 @@ BackgroundView::BackgroundView()
boot_times_label_(NULL),
progress_bar_(NULL),
shutdown_button_(NULL),
- did_paint_(false),
#if defined(OFFICIAL_BUILD)
is_official_build_(true),
#else
@@ -143,8 +126,6 @@ views::Widget* BackgroundView::CreateWindowContainingView(
const gfx::Rect& bounds,
const GURL& background_url,
BackgroundView** view) {
- ResetXCursor();
-
Widget* window = new Widget;
Widget::InitParams params(Widget::InitParams::TYPE_WINDOW);
params.bounds = bounds;
@@ -228,14 +209,6 @@ bool BackgroundView::ScreenSaverEnabled() {
///////////////////////////////////////////////////////////////////////////////
// BackgroundView protected:
-void BackgroundView::OnPaint(gfx::Canvas* canvas) {
- views::View::OnPaint(canvas);
- if (!did_paint_) {
- did_paint_ = true;
- UpdateWindowType();
- }
-}
-
void BackgroundView::Layout() {
const int kCornerPadding = 5;
const int kInfoLeftPadding = 10;
@@ -416,7 +389,6 @@ void BackgroundView::InitProgressBar() {
void BackgroundView::UpdateWindowType() {
std::vector<int> params;
- params.push_back(did_paint_ ? 1 : 0);
WmIpc::instance()->SetWindowType(
GTK_WIDGET(GetNativeWindow()),
WM_IPC_WINDOW_LOGIN_BACKGROUND,
« no previous file with comments | « chrome/browser/chromeos/login/background_view.h ('k') | chrome/browser/chromeos/login/dom_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698