2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #define BROWSER_COLOR_WHITE 255 255 255 255
22 #define BROWSER_IMAGE_CONTENT_BG "browser-view-images/41_browser_new_win_bg.png"
24 #define BROWSER_WAITING_PROGRESS_SIZE 90 90
25 #define BROWSER_FLOATING_BACKWARD_BUTTON_SIZE 120 124
26 #define BROWSER_CONTROL_BAR_HEIGHT 114
30 name: "browser/browser-view-main";
32 image: BROWSER_IMAGE_CONTENT_BG COMP;
43 rel1 { relative: 0.0 0.0; }
44 rel2 { relative: 1.0 1.0; }
45 color: BROWSER_COLOR_WHITE;
57 rel1 { relative: 0.0 0.0; to: "bg"; }
58 rel2 { relative: 1.0 1.0; to: "bg"; }
59 image.normal: BROWSER_IMAGE_CONTENT_BG;
63 inherit: "default" 0.0;
68 name: "elm.swallow.content";
76 rel1 { relative: 0.0 0.0; to: "contents_bg"; }
77 rel2 { relative: 1.0 0.0; to: "elm.swallow.control_bar"; }
81 name: "elm.swallow.scissorbox";
90 rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; }
91 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
95 inherit: "default" 0.0;
99 /* ifdef ZOOM_BUTTON */
101 name: "elm.swallow.zoom_out_button";
107 state: "default" 0.0;
113 rel1 { relative: 0.4 -0.5; to_y: "elm.swallow.control_bar"; }
114 rel2 { relative: 0.4 -0.5; to_y: "elm.swallow.control_bar"; }
117 state: "visible" 0.0;
118 inherit: "default" 0.0;
123 name: "elm.swallow.zoom_in_button";
129 state: "default" 0.0;
135 rel1 { relative: 0.6 -0.5; to_y: "elm.swallow.control_bar"; }
136 rel2 { relative: 0.6 -0.5; to_y: "elm.swallow.control_bar"; }
139 state: "visible" 0.0;
140 inherit: "default" 0.0;
144 /* endif ZOOM_BUTTON */
146 name: "padding,url_layout"; // padding
151 state: "default" 0.0;
156 rel1 { relative: 0.0 0.0; to: "contents_bg"; }
157 rel2 { relative: 1.0 0.0; to: "contents_bg"; }
162 name: "elm.swallow.waiting_progress";
167 state: "default" 0.0;
170 min: BROWSER_WAITING_PROGRESS_SIZE;
171 max: BROWSER_WAITING_PROGRESS_SIZE;
172 rel1 { relative: 0.0 0.0; to_x: contents_bg; to_y: "padding,url_layout"; }
173 rel2 { relative: 1.0 1.0; to: contents_bg; }
176 state: "unvisible" 0.0;
177 inherit: "default" 0.0;
182 name: "most_visited_sites_bg";
187 state: "default" 0.0;
190 rel1 { relative: 0.0 0.0; to: "elm.swallow.most_visited_sites"; }
191 rel2 { relative: 1.0 1.0; to: "elm.swallow.most_visited_sites"; }
192 color: 255 255 255 255;
195 state: "visible" 0.0;
196 inherit: "default" 0.0;
201 name: "padding,most_visited_sites_bottom";
207 state: "default" 0.0;
209 min: 0 BROWSER_CONTROL_BAR_HEIGHT;
211 rel1 { relative: 0.0 1.0; }
212 rel2 { relative: 1.0 1.0; }
216 name: "elm.swallow.most_visited_sites";
221 state: "default" 0.0;
224 rel1 { relative: 0.0 0.0; to: "elm.rect.content_dim"; }
225 rel2 { relative: 1.0 0.0; to: "padding,most_visited_sites_bottom"; }
228 state: "visible" 0.0;
229 inherit: "default" 0.0;
234 name: "elm.rect.content_dim";
240 state: "default" 0.0;
243 rel1 { relative: 0.0 1.0; to_y: "padding,url_layout"; }
244 rel2 { relative: 1.0 1.0; }
248 state: "visible" 0.0;
249 inherit: "default" 0.0;
254 name: "elm.swallow.most_visited";
260 state: "default" 0.0;
263 rel1 { relative: 0.0 0.0; to: "elm.rect.content_dim"; }
264 rel2 { relative: 1.0 0.0; to: "elm.rect.content_dim"; }
267 state: "visible" 0.0;
268 inherit: "default" 0.0;
273 name: "elm.swallow.control_bar";
279 state: "default" 0.0;
281 min: 0 BROWSER_CONTROL_BAR_HEIGHT;
284 rel1 { relative: 0.0 1.0; }
285 rel2 { relative: 1.0 1.0; }
288 state: "invisible" 0.0;
289 inherit: "default" 0.0;
291 rel1 { relative: 0.0 1.0; }
292 rel2 { relative: 1.0 1.0; }
296 name: "elm.swallow.multi_window";
302 state: "default" 0.0;
305 rel1 { relative: 0.0 0.0; to: "contents_bg"; }
306 rel2 { relative: 1.0 1.0; to: "contents_bg"; }
309 state: "visible" 0.0;
310 inherit: "default" 0.0;
314 /* For change effect. */
315 part { name: "rect.reader_layout";
321 state: "default" 0.0;
322 color: 255 255 255 0;
323 rel1 { relative: 0.0 0.0; to: "elm.swallow.reader"; }
324 rel2 { relative: 1.0 1.0; to: "elm.swallow.reader"; }
327 state: "visible" 0.0;
328 inherit: "default" 0.0;
329 color: 255 255 255 255;
333 name: "elm.swallow.reader";
338 /* For change effect. */
339 clip_to: "rect.reader_layout";
341 state: "default" 0.0;
344 rel1 { relative: 0.0 0.0; to: "contents_bg"; }
345 rel2 { relative: 1.0 1.0; to: "contents_bg"; }
348 state: "visible" 0.0;
349 inherit: "default" 0.0;
353 part { name: "elm.swallow.predictive_history";
358 state: "default" 0.0;
360 rel1 { relative: 0.0 0.0; to: "elm.swallow.most_visited"; }
361 rel2 { relative: 1.0 1.0; }
364 state: "visible" 0.0;
365 inherit: "default" 0.0;
370 /* In case of my sites guide text, dim the background of screen. */
371 name: "elm.rect.screen_dim";
377 state: "default" 0.0;
380 rel1 { relative: 0.0 0.0; to: "elm.swallow.multi_window"; }
381 rel2 { relative: 1.0 1.0; to: "elm.swallow.multi_window"; }
385 state: "visible" 0.0;
386 inherit: "default" 0.0;
391 name: "elm.swallow.mysites_guide";
397 state: "default" 0.0;
403 rel1 { relative: 0.0 0.0; to: "elm.rect.screen_dim"; }
404 rel2 { relative: 1.0 1.0; to: "elm.rect.screen_dim"; }
407 state: "visible" 0.0;
408 inherit: "default" 0.0;
414 /////////////////////////////
415 // show / hide scissor box
416 /////////////////////////////
417 program { name: "show,scissorbox";
418 signal: "show,scissorbox,signal";
419 action: STATE_SET "visible" 0.0;
420 target: "elm.swallow.scissorbox";
422 program { name: "hide,scissorbox";
423 signal: "hide,scissorbox,signal";
424 action: STATE_SET "default" 0.0;
425 target: "elm.swallow.scissorbox";
428 /* ifdef ZOOM_BUTTON */
429 /////////////////////////////
430 // show / hide zoom buttons
431 /////////////////////////////
432 program { name: "show,zoom_buttons";
433 signal: "show,zoom_buttons,signal";
434 action: STATE_SET "visible" 0.0;
435 target: "elm.swallow.zoom_out_button";
436 target: "elm.swallow.zoom_in_button";
438 program { name: "hide,zoom_buttons";
439 signal: "hide,zoom_buttons,signal";
440 action: STATE_SET "default" 0.0;
441 target: "elm.swallow.zoom_out_button";
442 target: "elm.swallow.zoom_in_button";
444 /* endif ZOOM_BUTTON */
446 /////////////////////////////
447 // show / hide reader
448 /////////////////////////////
449 program { name: "show,reader";
450 signal: "show,reader,signal";
451 action: STATE_SET "visible" 0.0;
452 target: "elm.swallow.reader";
454 program { name: "show,reader,clipper";
455 signal: "show,reader,signal";
456 transition: ACCELERATE 0.5;
457 action: STATE_SET "visible" 0.0;
458 target: "rect.reader_layout";
460 program { name: "hide,reader";
461 signal: "hide,reader,signal";
462 action: STATE_SET "default" 0.0;
463 target: "elm.swallow.reader";
464 target: "rect.reader_layout";
467 /////////////////////////////
468 // show / hide most visited sites
469 /////////////////////////////
470 program { name: "show,most_visited_sites";
471 signal: "show,most_visited_sites,signal";
472 action: STATE_SET "visible" 0.0;
473 target: "elm.swallow.most_visited_sites";
474 target: "most_visited_sites_bg";
476 program { name: "hide,most_visited_sites";
477 signal: "hide,most_visited_sites,signal";
478 action: STATE_SET "default" 0.0;
479 target: "elm.swallow.most_visited_sites";
480 target: "most_visited_sites_bg";
483 /////////////////////////////////////
484 // show / hide most visited sites guide text
485 /////////////////////////////////////
486 program { name: "show,most_visited_sites_guide_text";
487 signal: "show,most_visited_sites_guide_text,signal";
488 action: STATE_SET "visible" 0.0;
489 target: "elm.rect.screen_dim";
490 target: "elm.swallow.mysites_guide";
492 program { name: "hide,most_visited_sites_guide_text";
493 signal: "hide,most_visited_sites_guide_text,signal";
494 action: STATE_SET "default" 0.0;
495 target: "elm.rect.screen_dim";
496 target: "elm.swallow.mysites_guide";
499 /////////////////////////////
500 // url edit mode on/off
501 /////////////////////////////
502 program { name: "edit,url,on";
503 signal: "edit,url,on,signal";
504 action: STATE_SET "visible" 0.0;
505 target: "elm.rect.content_dim";
506 after: "show,most_visited";
508 program { name: "edit,url,off";
509 signal: "edit,url,off,signal";
510 action: STATE_SET "default" 0.0;
511 target: "elm.rect.content_dim";
512 after: "hide,most_visited";
515 /////////////////////////////
516 // show / hide background dim
517 /////////////////////////////
518 program { name: "dim,bg";
519 signal: "dim,bg,signal";
520 action: STATE_SET "visible" 0.0;
521 target: "elm.rect.content_dim";
523 program { name: "undim,bg";
524 signal: "undim,bg,signal";
525 action: STATE_SET "default" 0.0;
526 target: "elm.rect.content_dim";
529 ////////////////////////////////////
530 // show / hide most visited swallow
531 ////////////////////////////////////
532 program { name: "show,most_visited";
533 signal: "show,most_visited,signal";
534 action: STATE_SET "visible" 0.0;
535 target: "elm.swallow.most_visited";
537 program { name: "hide,most_visited";
538 signal: "hide,most_visited,signal";
539 action: STATE_SET "default" 0.0;
540 target: "elm.swallow.most_visited";
543 ////////////////////////////////////
544 // show / hide multiwindow swallow
545 ////////////////////////////////////
546 program { name: "show,multi_window";
547 signal: "show,multi_window,signal";
548 action: STATE_SET "visible" 0.0;
549 target: "elm.swallow.multi_window";
551 program { name: "hide,multi_window";
552 signal: "hide,multi_window,signal";
553 action: STATE_SET "default" 0.0;
554 target: "elm.swallow.multi_window";
557 /////////////////////////////
558 // control bar show / hide
559 /////////////////////////////
560 program { name: "show,control_bar";
561 signal: "show,control_bar,signal";
562 transition: LINEAR 0.2;
563 action: STATE_SET "default" 0.0;
564 target: "elm.swallow.control_bar";
566 program { name: "hide,control_bar";
567 signal: "hide,control_bar,signal";
568 transition: LINEAR 0.2;
569 action: STATE_SET "invisible" 0.0;
570 target: "elm.swallow.control_bar";
572 program { name: "hide,control_bar,no_animation";
573 signal: "hide,control_bar,no_animation,signal";
574 action: STATE_SET "invisible" 0.0;
575 target: "elm.swallow.control_bar";
577 program { name: "show,control_bar,no_animation";
578 signal: "show,control_bar,no_animation,signal";
579 action: STATE_SET "default" 0.0;
580 target: "elm.swallow.control_bar";
582 /////////////////////////////////////////////////////
583 // hide waiting progress bar / show grey background
584 /////////////////////////////////////////////////////
585 program { name: "hide,waiting_progressbar";
586 signal: "hide,waiting_progressbar,signal";
587 action: STATE_SET "unvisible" 0.0;
588 target: "elm.swallow.waiting_progress";
590 program { name: "show,grey_background";
591 signal: "show,grey_background,signal";
592 action: STATE_SET "visible" 0.0;
593 target: "contents_bg";
595 program { name: "hide,grey_background";
596 signal: "hide,grey_background,signal";
597 action: STATE_SET "default" 0.0;
598 target: "contents_bg";
601 ////////////////////////////////////
602 // show / hide predictive history
603 ////////////////////////////////////
604 program { name: "hide,predictive_history";
605 signal: "hide,predictive_history,signal";
606 action: STATE_SET "default" 0.0;
607 target: "elm.swallow.predictive_history";
609 program { name: "show,predictive_history";
610 signal: "show,predictive_history,signal";
611 action: STATE_SET "visible" 0.0;
612 target: "elm.swallow.predictive_history";
618 name: "browser/browser-view-webview";
625 state: "default" 0.0;
628 rel1 { relative: 0.0 0.0; }
629 /* The height of url bar layout is 65. */
630 /* The webview size is content height + 65. */
631 rel2 { relative: 1.0 1.0; }
636 name: "elm.swallow.webview";
642 state: "default" 0.0;
645 rel1 { relative: 0.0 0.0; to: "bg"; }
646 rel2 { relative: 1.0 1.0; to: "bg"; }
652 group { name: "brightness_popup";
654 part { name: "elm.title";
657 description { state: "default" 0.0;
658 #ifdef WVGA_NBEAT // 480 * 800
664 font: "SLP:style=Medium";
665 #ifdef WVGA_NBEAT // 480 * 800
673 color: 108 108 108 255;
677 to: "elm.swallow.content";
681 to: "elm.swallow.content";
685 part{ name:"elm.swallow.content";
688 description { state: "default" 0.0;
689 #ifdef WVGA_NBEAT // 480 * 800