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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 329943004: Implementation of brand-color (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t) 556 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t)
557 { 557 {
558 m_permissionClient = permissionClient; 558 m_permissionClient = permissionClient;
559 } 559 }
560 560
561 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client) 561 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client)
562 { 562 {
563 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient); 563 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient);
564 } 564 }
565 565
566 WebColor WebLocalFrameImpl::brandColor() const
567 {
568 return frame()->document()->brandColor().rgb();
569 }
570
566 WebSize WebLocalFrameImpl::scrollOffset() const 571 WebSize WebLocalFrameImpl::scrollOffset() const
567 { 572 {
568 FrameView* view = frameView(); 573 FrameView* view = frameView();
569 if (!view) 574 if (!view)
570 return WebSize(); 575 return WebSize();
571 return view->scrollOffset(); 576 return view->scrollOffset();
572 } 577 }
573 578
574 WebSize WebLocalFrameImpl::minimumScrollOffset() const 579 WebSize WebLocalFrameImpl::minimumScrollOffset() const
575 { 580 {
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 1927
1923 void WebLocalFrameImpl::invalidateAll() const 1928 void WebLocalFrameImpl::invalidateAll() const
1924 { 1929 {
1925 ASSERT(frame() && frame()->view()); 1930 ASSERT(frame() && frame()->view());
1926 FrameView* view = frame()->view(); 1931 FrameView* view = frame()->view();
1927 view->invalidateRect(view->frameRect()); 1932 view->invalidateRect(view->frameRect());
1928 invalidateScrollbar(); 1933 invalidateScrollbar();
1929 } 1934 }
1930 1935
1931 } // namespace blink 1936 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698