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

Side by Side Diff: chrome/browser/ui/ash/screenshot_taker.cc

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/screenshot_taker.h" 5 #include "chrome/browser/ui/ash/screenshot_taker.h"
6 6
7 #include <climits> 7 #include <climits>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 531 }
532 532
533 void ScreenshotTaker::AddObserver(ScreenshotTakerObserver* observer) { 533 void ScreenshotTaker::AddObserver(ScreenshotTakerObserver* observer) {
534 observers_.AddObserver(observer); 534 observers_.AddObserver(observer);
535 } 535 }
536 536
537 void ScreenshotTaker::RemoveObserver(ScreenshotTakerObserver* observer) { 537 void ScreenshotTaker::RemoveObserver(ScreenshotTakerObserver* observer) {
538 observers_.RemoveObserver(observer); 538 observers_.RemoveObserver(observer);
539 } 539 }
540 540
541 bool ScreenshotTaker::HasObserver(ScreenshotTakerObserver* observer) const { 541 bool ScreenshotTaker::HasObserver(
542 const ScreenshotTakerObserver* observer) const {
542 return observers_.HasObserver(observer); 543 return observers_.HasObserver(observer);
543 } 544 }
544 545
545 void ScreenshotTaker::GrabWindowSnapshotAsyncCallback( 546 void ScreenshotTaker::GrabWindowSnapshotAsyncCallback(
546 base::FilePath screenshot_path, 547 base::FilePath screenshot_path,
547 bool is_partial, 548 bool is_partial,
548 int window_idx, 549 int window_idx,
549 scoped_refptr<base::RefCountedBytes> png_data) { 550 scoped_refptr<base::RefCountedBytes> png_data) {
550 if (!png_data.get()) { 551 if (!png_data.get()) {
551 if (is_partial) { 552 if (is_partial) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 622 }
622 623
623 void ScreenshotTaker::SetScreenshotBasenameForTest( 624 void ScreenshotTaker::SetScreenshotBasenameForTest(
624 const std::string& basename) { 625 const std::string& basename) {
625 screenshot_basename_for_test_ = basename; 626 screenshot_basename_for_test_ = basename;
626 } 627 }
627 628
628 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) { 629 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) {
629 profile_for_test_ = profile; 630 profile_for_test_ = profile;
630 } 631 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698