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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/mock_link_infobar_delegate.h

Issue 8536010: Cleanup: Remove unneeded forward declarations from chrome/browser/ui/gtk and chrome/browser/ui/co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/tab_contents/link_infobar_delegate.h" 12 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
13 13
14 class SkBitmap;
15
16 class MockLinkInfoBarDelegate : public LinkInfoBarDelegate { 14 class MockLinkInfoBarDelegate : public LinkInfoBarDelegate {
17 public: 15 public:
18 // Called when |this| is about to be destroyed. 16 // Called when |this| is about to be destroyed.
19 class Owner { 17 class Owner {
20 public: 18 public:
21 virtual void OnInfoBarDelegateClosed() = 0; 19 virtual void OnInfoBarDelegateClosed() = 0;
22 20
23 protected: 21 protected:
24 virtual ~Owner() {} 22 virtual ~Owner() {}
25 }; 23 };
(...skipping 22 matching lines...) Expand all
48 bool closes_on_action_; 46 bool closes_on_action_;
49 mutable bool icon_accessed_; 47 mutable bool icon_accessed_;
50 mutable bool message_text_accessed_; 48 mutable bool message_text_accessed_;
51 mutable bool link_text_accessed_; 49 mutable bool link_text_accessed_;
52 bool link_clicked_; 50 bool link_clicked_;
53 51
54 DISALLOW_COPY_AND_ASSIGN(MockLinkInfoBarDelegate); 52 DISALLOW_COPY_AND_ASSIGN(MockLinkInfoBarDelegate);
55 }; 53 };
56 54
57 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_ 55 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MOCK_LINK_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698