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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.h

Issue 8438064: Separate StatusAreaView from StatusAreaViewChromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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
Index: chrome/browser/chromeos/login/webui_login_view.h
diff --git a/chrome/browser/chromeos/login/webui_login_view.h b/chrome/browser/chromeos/login/webui_login_view.h
index d822f0b72f2db2b9d8899bc3770da13c7d767e19..a5f5ce5588d34a726dae6152358dbde7944bcbcd 100644
--- a/chrome/browser/chromeos/login/webui_login_view.h
+++ b/chrome/browser/chromeos/login/webui_login_view.h
@@ -7,7 +7,7 @@
#pragma once
#include "chrome/browser/chromeos/login/login_html_dialog.h"
-#include "chrome/browser/chromeos/status/status_area_host.h"
+#include "chrome/browser/chromeos/status/status_area_button.h"
#include "chrome/browser/tab_first_render_watcher.h"
#include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
@@ -25,15 +25,15 @@ class Widget;
namespace chromeos {
-class StatusAreaView;
+class StatusAreaViewChromeos;
// View used to render a WebUI supporting Widget. This widget is used for the
// WebUI based start up and lock screens. It contains a StatusAreaView and
// DOMView.
class WebUILoginView : public views::WidgetDelegateView,
- public StatusAreaHost,
+ public StatusAreaButton::Delegate,
public TabContentsDelegate,
- public chromeos::LoginHtmlDialog::Delegate,
+ public LoginHtmlDialog::Delegate,
public TabFirstRenderWatcher::Delegate {
public:
static const int kStatusAreaCornerPadding;
@@ -49,12 +49,12 @@ class WebUILoginView : public views::WidgetDelegateView,
const views::Accelerator& accelerator) OVERRIDE;
virtual std::string GetClassName() const OVERRIDE;
- // Overridden from StatusAreaHost:
- virtual gfx::NativeWindow GetNativeWindow() const;
-
// Called when WebUI window is created.
virtual void OnWindowCreated();
+ // Gets the native window from the view widget.
+ gfx::NativeWindow GetNativeWindow() const;
+
// Invokes SetWindowType for the window. This is invoked during startup and
// after we've painted.
void UpdateWindowType();
@@ -76,14 +76,13 @@ class WebUILoginView : public views::WidgetDelegateView,
virtual void Layout() OVERRIDE;
virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
- // Overridden from StatusAreaHost:
- virtual Profile* GetProfile() const OVERRIDE;
- virtual void ExecuteBrowserCommand(int id) const OVERRIDE;
- virtual bool ShouldOpenButtonOptions(
- const views::View* button_view) const OVERRIDE;
- virtual void OpenButtonOptions(const views::View* button_view) OVERRIDE;
- virtual ScreenMode GetScreenMode() const OVERRIDE;
- virtual TextStyle GetTextStyle() const OVERRIDE;
+ // Overridden from StatusAreaButton::Delegate:
+ virtual bool ShouldExecuteStatusAreaCommand(
+ const views::View* button_view, int command_id) const OVERRIDE;
+ virtual void ExecuteStatusAreaCommand(
+ const views::View* button_view, int command_id) OVERRIDE;
+ virtual gfx::Font GetStatusAreaFont(const gfx::Font& font) const OVERRIDE;
+ virtual StatusAreaButton::TextStyle GetStatusAreaTextStyle() const OVERRIDE;
virtual void ButtonVisibilityChanged(views::View* button_view) OVERRIDE;
// Overridden from LoginHtmlDialog::Delegate:
@@ -98,7 +97,7 @@ class WebUILoginView : public views::WidgetDelegateView,
// Creates and adds the status area (separate window).
virtual void InitStatusArea();
- StatusAreaView* status_area_;
+ StatusAreaViewChromeos* status_area_;
// DOMView for rendering a webpage as a webui login.
DOMView* webui_login_;
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_views.cc ('k') | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698