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

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

Issue 11929016: Move jstemplate_builder.* to ui\webui so it can be reused by webui implementations outside of chrom… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to 177705 to get yfriendman's fix Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/chromeos/login/oobe_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" 28 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h"
29 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 29 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
30 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" 30 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h"
31 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 31 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
32 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h" 32 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h"
33 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h" 33 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h"
34 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" 34 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h"
35 #include "chrome/browser/ui/webui/theme_source.h" 35 #include "chrome/browser/ui/webui/theme_source.h"
36 #include "chrome/browser/ui/webui/web_ui_util.h" 36 #include "chrome/browser/ui/webui/web_ui_util.h"
37 #include "chrome/common/chrome_switches.h" 37 #include "chrome/common/chrome_switches.h"
38 #include "chrome/common/jstemplate_builder.h"
39 #include "chrome/common/url_constants.h" 38 #include "chrome/common/url_constants.h"
40 #include "content/public/browser/url_data_source.h" 39 #include "content/public/browser/url_data_source.h"
41 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
42 #include "content/public/browser/web_ui.h" 41 #include "content/public/browser/web_ui.h"
43 #include "grit/browser_resources.h" 42 #include "grit/browser_resources.h"
44 #include "ui/base/resource/resource_bundle.h" 43 #include "ui/base/resource/resource_bundle.h"
44 #include "ui/webui/jstemplate_builder.h"
45 45
46 using content::WebContents; 46 using content::WebContents;
47 47
48 namespace { 48 namespace {
49 49
50 // Path for a stripped down login page that does not have OOBE elements. 50 // Path for a stripped down login page that does not have OOBE elements.
51 const char kLoginPath[] = "login"; 51 const char kLoginPath[] = "login";
52 52
53 // Path for the enterprise enrollment gaia page hosting. 53 // Path for the enterprise enrollment gaia page hosting.
54 const char kEnterpriseEnrollmentGaiaLoginPath[] = "gaialogin"; 54 const char kEnterpriseEnrollmentGaiaLoginPath[] = "gaialogin";
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 void OobeUI::OnCurrentScreenChanged(const std::string& screen) { 366 void OobeUI::OnCurrentScreenChanged(const std::string& screen) {
367 if (screen_ids_.count(screen)) { 367 if (screen_ids_.count(screen)) {
368 current_screen_ = screen_ids_[screen]; 368 current_screen_ = screen_ids_[screen];
369 } else { 369 } else {
370 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()"; 370 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()";
371 current_screen_ = SCREEN_UNKNOWN; 371 current_screen_ = SCREEN_UNKNOWN;
372 } 372 }
373 } 373 }
374 374
375 } // namespace chromeos 375 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698