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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/base_screen_handler.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/base_login_display_host.h"
6 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
7 6
8 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/chromeos/login/base_login_display_host.h"
9 #include "content/browser/webui/web_ui.h"
9 10
10 namespace chromeos { 11 namespace chromeos {
11 12
12 BaseScreenHandler::BaseScreenHandler() : page_is_ready_(false) { 13 BaseScreenHandler::BaseScreenHandler() : page_is_ready_(false) {
13 } 14 }
14 15
15 BaseScreenHandler::~BaseScreenHandler() { 16 BaseScreenHandler::~BaseScreenHandler() {
16 } 17 }
17 18
18 void BaseScreenHandler::InitializeBase() { 19 void BaseScreenHandler::InitializeBase() {
(...skipping 11 matching lines...) Expand all
30 screen_params.SetWithoutPathExpansion("data", data->DeepCopy()); 31 screen_params.SetWithoutPathExpansion("data", data->DeepCopy());
31 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params); 32 web_ui()->CallJavascriptFunction("cr.ui.Oobe.showScreen", screen_params);
32 } 33 }
33 34
34 35
35 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() { 36 gfx::NativeWindow BaseScreenHandler::GetNativeWindow() {
36 return BaseLoginDisplayHost::default_host()->GetNativeWindow(); 37 return BaseLoginDisplayHost::default_host()->GetNativeWindow();
37 } 38 }
38 39
39 } // namespace chromeos 40 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698