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

Unified Diff: chrome/browser/resources/settings/about_page/about_page.html

Issue 1950423003: MD Settings: Adding "About" page basic structure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_page_route
Patch Set: Add GYP target. Created 4 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
Index: chrome/browser/resources/settings/about_page/about_page.html
diff --git a/chrome/browser/resources/settings/about_page/about_page.html b/chrome/browser/resources/settings/about_page/about_page.html
new file mode 100644
index 0000000000000000000000000000000000000000..881f60ce74bb930dccc075d6382c81adda570abc
--- /dev/null
+++ b/chrome/browser/resources/settings/about_page/about_page.html
@@ -0,0 +1,57 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://md-settings/settings_page/settings_section.html">
+<link rel="import" href="chrome://md-settings/settings_shared_css.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
tommycli 2016/05/06 18:01:43 Do you also need to import main_page_behavior?
dpapad 2016/05/06 18:33:29 I looked into this. MainPageBehavior has methods r
tommycli 2016/05/06 18:50:20 I asked because you use main-page-styles below. If
dpapad 2016/05/06 19:01:31 Done.
+
+<dom-module id="settings-about-page">
+ <link rel="import" type="css" href="chrome://md-settings/settings_page.css">
+ <template>
+ <style include="settings-shared"></style>
+ <style include="main-page-styles">
+ .logo-container {
tommycli 2016/05/06 18:01:43 Which is the element with the logo-container class
dpapad 2016/05/06 18:33:29 Removed. That was a remainder from a previous stat
+ display: flex;
+ }
tommycli 2016/05/06 18:01:43 \n between entries in css
dpapad 2016/05/06 18:33:29 Done.
+ span {
+ font-size: 20px;
+ margin-top: auto;
+ margin-bottom: auto;
tommycli 2016/05/06 18:01:43 I assume these auto margins are to center? Does fl
dpapad 2016/05/06 18:33:29 Removed. You are right, align-items: center, works
+ }
+ img {
+ -webkit-margin-end: 10px;
+ }
+ </style>
+ <settings-section page-title="$i18n{aboutPageTitle}"
+ current-route="[[currentRoute]]" section="">
tommycli 2016/05/06 18:01:43 Since Michael rewrote settings-section animations,
tommycli 2016/05/06 18:01:43 Additionally, I'm not sure if current-route="[[cur
dpapad 2016/05/06 18:33:29 Removed section="" completely. Navigation still se
+ <div class="settings-box">
+ <img id="product-logo"
+ srcset="chrome://theme/current-channel-logo@1x 1x,
+ chrome://theme/current-channel-logo@2x 2x" alt="">
+ <span>$i18n{aboutProductTitle}</span>
+ </div>
+ <div class="settings-box two-line">
+ <!-- TODO(dpapad): Implement this. -->
+ <div class="start">
+ <div>Your device is up to date</div>
tommycli 2016/05/06 18:01:43 If there are mocks and these are the final English
dpapad 2016/05/06 18:33:29 The final string is a combination of dynamic and s
tommycli 2016/05/06 18:50:20 Ah that's fine then. I'm okay with localizing in s
+ <div class="secondary">Version Foo.bar.baz</div>
+ </div>
+ <paper-button class="secondary-action">Check for update</paper-button>
+ </div>
+ <div class="settings-box two-line">
+ <!-- TODO(dpapad): Implement this. -->
+ <div class="start">
+ <div>Get help with Chrome</div>
+ <div class="secondary">Open the Help Center</div>
+ </div>
+ </div>
+ <div class="settings-box">
+ <!-- TODO(dpapad): Implement this. -->
+ Report an issue
+ </div>
+ <div class="settings-box">
+ <!-- TODO(dpapad): Implement this. -->
+ Other info here
+ </div>
+ </settings-section>
+ </template>
+ <script src="about_page.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698