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

Side by Side Diff: chrome/browser/ui/views/network_profile_bubble_view.h

Issue 10830366: Avoid overriding Bubble's GetAnchorRect() where possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove a redundant DCHECK. Created 8 years, 4 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 #ifndef CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/bubble/bubble_delegate.h" 10 #include "ui/views/bubble/bubble_delegate.h"
(...skipping 11 matching lines...) Expand all
22 public views::LinkListener { 22 public views::LinkListener {
23 public: 23 public:
24 NetworkProfileBubbleView(views::View* anchor, 24 NetworkProfileBubbleView(views::View* anchor,
25 content::PageNavigator* navigator, 25 content::PageNavigator* navigator,
26 Profile* profile); 26 Profile* profile);
27 private: 27 private:
28 virtual ~NetworkProfileBubbleView(); 28 virtual ~NetworkProfileBubbleView();
29 29
30 // views::BubbleDelegateView: 30 // views::BubbleDelegateView:
31 virtual void Init() OVERRIDE; 31 virtual void Init() OVERRIDE;
32 virtual gfx::Rect GetAnchorRect() OVERRIDE;
33 32
34 // views::ButtonListener: 33 // views::ButtonListener:
35 virtual void ButtonPressed(views::Button* sender, 34 virtual void ButtonPressed(views::Button* sender,
36 const ui::Event& event) OVERRIDE; 35 const ui::Event& event) OVERRIDE;
37 36
38 // views::LinkListener: 37 // views::LinkListener:
39 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 38 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
40 39
41 // Used for loading pages. 40 // Used for loading pages.
42 content::PageNavigator* navigator_; 41 content::PageNavigator* navigator_;
43 Profile* profile_; 42 Profile* profile_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubbleView); 44 DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubbleView);
46 }; 45 };
47 46
48 #endif // CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ 47 #endif // CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.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