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

Unified Diff: docs/kiosk_mode.md

Issue 1324603002: [Docs] Another round of stylistic fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « docs/ipc_fuzzer.md ('k') | docs/layout_tests_linux.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/kiosk_mode.md
diff --git a/docs/kiosk_mode.md b/docs/kiosk_mode.md
index 55bc39caab7aa58c719a8a3087677e6a585cca04..3c1789855d134bfd0fb62272e67cf2b0e50e982a 100644
--- a/docs/kiosk_mode.md
+++ b/docs/kiosk_mode.md
@@ -1,7 +1,7 @@
-## Introduction
-
-If you have a real world kiosk application that you want to run on Google Chrome, then below are the steps to take to simulate kiosk mode.
+# Kiosk Mode
+If you have a real world kiosk application that you want to run on Google
+Chrome, then below are the steps to take to simulate kiosk mode.
## Steps to Simulate Kiosk Mode
@@ -9,7 +9,7 @@ If you have a real world kiosk application that you want to run on Google Chrome
Compile the following Java code:
-```
+```java
import java.awt.*;
import java.applet.*;
import java.security.*;
@@ -21,9 +21,9 @@ public class FullScreen extends Applet
{
AccessController.doPrivileged
(
- new PrivilegedAction()
+ new PrivilegedAction()
{
- public Object run()
+ public Object run()
{
try
{
@@ -46,8 +46,11 @@ public class FullScreen extends Applet
Include it in an applet on your kiosk application's home page:
-```
-<applet name="appletFullScreen" code="FullScreen.class" width="1" height="1"></applet>
+```html
+<applet name="appletFullScreen"
+ code="FullScreen.class"
+ width="1"
+ height="1"></applet>
```
### Step 3
@@ -56,16 +59,17 @@ Add the following to the kiosk computer's java.policy file:
```
grant codeBase "http://yourservername/*"
-{
+{
permission java.security.AllPermission;
};
```
### Step 4
-Include the following JavaScript and assign the doLoad function to the onload event:
+Include the following JavaScript and assign the `doLoad` function to the
+`onload` event:
-```
+```javascript
var _appletFullScreen;
function doLoad()
@@ -78,8 +82,9 @@ function doFullScreen()
{
if (_appletFullScreen && _appletFullScreen.fullScreen)
{
-// Add an if statement to check whether document.body.clientHeight is not indicative of full screen mode
+ // Add an if statement to check whether document.body.clientHeight is not
+ // indicative of full screen mode
_appletFullScreen.fullScreen();
}
}
-```
+```
« no previous file with comments | « docs/ipc_fuzzer.md ('k') | docs/layout_tests_linux.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698