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

Side by Side Diff: chrome/test/data/extensions/samples/mappy/mappy_toolstrip.html

Issue 208020: Change the view mode when switching between moles and toolstrips, and (Closed)
Patch Set: build system workarounds Created 11 years, 3 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
« no previous file with comments | « chrome/renderer/resources/extension_toolstrip.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <style> 1 <style>
2 .chrome-toolstrip #map {
3 display: none;
4 }
5
6 .chrome-toolstrip #button {
7 display: block;
8 }
9
10 .chrome-mole #map {
11 display: block;
12 }
13
14 .chrome-mole #button {
15 display: none;
16 }
17
2 #map { 18 #map {
3 display: none;
4 width: 512px; 19 width: 512px;
5 height: 512px; 20 height: 512px;
6 } 21 }
7 </style> 22 </style>
8 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAATfHumD bW3OmRByfquHd3SRTRERdeAiwZ9EeJWta3L_JZVS0bOBRQeZgr4K0xyVKzUdnnuFl8X9PX0w&sensor= false" 23 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAATfHumD bW3OmRByfquHd3SRTRERdeAiwZ9EeJWta3L_JZVS0bOBRQeZgr4K0xyVKzUdnnuFl8X9PX0w&sensor= false"
9 type="text/javascript"></script> 24 type="text/javascript"></script>
10 <script> 25 <script>
11 var maps_key = "ABQIAAAATfHumDbW3OmRByfquHd3SRTRERdeAiwZ9EeJWta3L_JZVS0bOBRQeZgr 4K0xyVKzUdnnuFl8X9PX0w"; 26 var maps_key = "ABQIAAAATfHumDbW3OmRByfquHd3SRTRERdeAiwZ9EeJWta3L_JZVS0bOBRQeZgr 4K0xyVKzUdnnuFl8X9PX0w";
12 27
13 chrome.toolstrip.onCollapsed.addListener(function() {
14 var map = document.getElementById("map");
15 map.src = "";
16 map.style.display = "none";
17 var button = document.getElementById("button");
18 button.style.display = "block";
19 });
20
21 function expand(url) { 28 function expand(url) {
22 var button = document.getElementById("button");
23 button.style.display = "none";
24 var map = document.getElementById("map"); 29 var map = document.getElementById("map");
25 map.src = url; 30 map.src = url;
26 map.style.display = "block";
27 chrome.toolstrip.expand({height:512}, function() {}); 31 chrome.toolstrip.expand({height:512}, function() {});
28 } 32 }
29 33
30 function collapse() { 34 function collapse() {
31 chrome.toolstrip.collapse({}, function() {}); 35 chrome.toolstrip.collapse({}, function() {});
32 } 36 }
33 37
34 function gclient_geocode(address) { 38 function gclient_geocode(address) {
35 var geocoder = new GClientGeocoder(); 39 var geocoder = new GClientGeocoder();
36 geocoder.getLatLng(address, function(point) { 40 geocoder.getLatLng(address, function(point) {
(...skipping 21 matching lines...) Expand all
58 }); 62 });
59 port.postMessage({message: "hello tab: " + tab.id}); 63 port.postMessage({message: "hello tab: " + tab.id});
60 } 64 }
61 }); 65 });
62 }; 66 };
63 </script> 67 </script>
64 <div id="button" class="toolstrip-button" onclick="map()"> 68 <div id="button" class="toolstrip-button" onclick="map()">
65 <span>Mappy</span> 69 <span>Mappy</span>
66 </div> 70 </div>
67 <img id="map" onclick="collapse()"> 71 <img id="map" onclick="collapse()">
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extension_toolstrip.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698