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

Unified Diff: chrome/browser/resources/touch_ntp/newtab.html

Issue 6661024: Use a specialized new tab page in TOUCH_UI builds (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix some indentation issues and enable gjslist --strict mode to catch them automatically Created 9 years, 9 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/resources/touch_ntp/newtab.css ('k') | chrome/browser/resources/touch_ntp/newtab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/touch_ntp/newtab.html
diff --git a/chrome/browser/resources/touch_ntp/newtab.html b/chrome/browser/resources/touch_ntp/newtab.html
new file mode 100644
index 0000000000000000000000000000000000000000..e8b659c2647eaa9e1717b5d37ba7a72541184968
--- /dev/null
+++ b/chrome/browser/resources/touch_ntp/newtab.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title i18n-content="title"></title>
+ <link rel="stylesheet" href="newtab.css">
+ <!-- Don't scale the viewport in either portrait or landscape mode.
+ Note that this means apps will be reflowed when rotated (like iPad).
+ If we wanted to maintain position we could remove 'maximum-scale' so
+ that we'd zoom out in portrait mode, but then there would be a bunch
+ of unusable space at the bottom.
+ -->
+ <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1.0">
+</head>
+<body>
+ <div id="apps-frame">
+ <div id="apps-page-list">
+ <div class="apps-page">
+ <!-- This is used as a template which JS copies and fills in. The
+ template itself is never actually displayed.
+ An app-container is always a direct child of an apps-page, and is
+ expected to have a single 'app' child element holding the visible
+ content, and 'img' and 'span' tags as descendants somewhere.
+ -->
+ <div class="app-container" id="app-template">
+ <div class="app">
+ <img>
+ <span>App name</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="footer">
+ <ul id="dot-list">
+ <li class="dot"></li>
+ </ul>
+ <div id="trash">
+ </div>
+ </div>
+ <!-- If this page hasn't been run through grit and embedded into chrome, then
+ load the standalone hacks -->
+ <if expr="False">
+ <script src="standalone/standalone_hack.js"></script>
+ </if>
+ <!-- Substitute localized strings for all elements with il8n-content
+ attributes. -->
+ <script src="../shared/js/i18n_template.js"></script>
+ <!-- template data placeholder -->
+ <script>
+ i18nTemplate.process(document, templateData);
+ </script>
+
+ <script src="../shared/js/util.js"></script>
+ <script src="eventtracker.js"></script>
+ <script src="touchhandler.js"></script>
+ <script src="slider.js"></script>
+ <script src="grabber.js"></script>
+ <script src="newtab.js"></script>
+</body>
+</html>
« no previous file with comments | « chrome/browser/resources/touch_ntp/newtab.css ('k') | chrome/browser/resources/touch_ntp/newtab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698