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

Side by Side Diff: chrome/browser/ui/views/infobars/link_infobar.cc

Issue 10694060: browser: Move more files into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 // 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/views/infobars/link_infobar.h" 5 #include "chrome/browser/ui/views/infobars/link_infobar.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/event_disposition.h" 8 #include "chrome/browser/event_disposition.h"
9 #include "chrome/browser/tab_contents/link_infobar_delegate.h" 9 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
10 #include "ui/views/controls/label.h" 10 #include "ui/views/controls/label.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // the close button is the last child. 70 // the close button is the last child.
71 InfoBarView::ViewHierarchyChanged(is_add, parent, child); 71 InfoBarView::ViewHierarchyChanged(is_add, parent, child);
72 } 72 }
73 73
74 void LinkInfoBar::LinkClicked(views::Link* source, int event_flags) { 74 void LinkInfoBar::LinkClicked(views::Link* source, int event_flags) {
75 if (!owned()) 75 if (!owned())
76 return; // We're closing; don't call anything, it might access the owner. 76 return; // We're closing; don't call anything, it might access the owner.
77 DCHECK(link_ != NULL); 77 DCHECK(link_ != NULL);
78 DCHECK_EQ(link_, source); 78 DCHECK_EQ(link_, source);
79 if (GetDelegate()->LinkClicked( 79 if (GetDelegate()->LinkClicked(
80 browser::DispositionFromEventFlags(event_flags))) 80 chrome::DispositionFromEventFlags(event_flags)))
81 RemoveSelf(); 81 RemoveSelf();
82 } 82 }
83 83
84 LinkInfoBarDelegate* LinkInfoBar::GetDelegate() { 84 LinkInfoBarDelegate* LinkInfoBar::GetDelegate() {
85 return delegate()->AsLinkInfoBarDelegate(); 85 return delegate()->AsLinkInfoBarDelegate();
86 } 86 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/views/network_profile_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698