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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/views/reload_button.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SAD_TAB_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_SAD_TAB_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 "chrome/browser/ui/sad_tab_types.h" 10 #include "chrome/browser/ui/sad_tab_types.h"
(...skipping 30 matching lines...) Expand all
41 virtual ~SadTabView(); 41 virtual ~SadTabView();
42 42
43 // Overridden from views::View: 43 // Overridden from views::View:
44 virtual void Layout() OVERRIDE; 44 virtual void Layout() OVERRIDE;
45 45
46 // Overridden from views::LinkListener: 46 // Overridden from views::LinkListener:
47 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 47 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
48 48
49 // Overridden from views::ButtonListener: 49 // Overridden from views::ButtonListener:
50 virtual void ButtonPressed(views::Button* source, 50 virtual void ButtonPressed(views::Button* source,
51 const views::Event& event) OVERRIDE; 51 const ui::Event& event) OVERRIDE;
52 52
53 protected: 53 protected:
54 // Overridden from views::View: 54 // Overridden from views::View:
55 virtual void ViewHierarchyChanged(bool is_add, 55 virtual void ViewHierarchyChanged(bool is_add,
56 views::View* parent, 56 views::View* parent,
57 views::View* child) OVERRIDE; 57 views::View* child) OVERRIDE;
58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
59 59
60 private: 60 private:
61 views::Label* CreateLabel(const string16& text); 61 views::Label* CreateLabel(const string16& text);
62 views::Link* CreateLink(const string16& text); 62 views::Link* CreateLink(const string16& text);
63 63
64 content::WebContents* web_contents_; 64 content::WebContents* web_contents_;
65 chrome::SadTabKind kind_; 65 chrome::SadTabKind kind_;
66 bool painted_; 66 bool painted_;
67 const gfx::Font& base_font_; 67 const gfx::Font& base_font_;
68 views::Label* message_; 68 views::Label* message_;
69 views::Link* help_link_; 69 views::Link* help_link_;
70 views::Link* feedback_link_; 70 views::Link* feedback_link_;
71 views::TextButton* reload_button_; 71 views::TextButton* reload_button_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(SadTabView); 73 DISALLOW_COPY_AND_ASSIGN(SadTabView);
74 }; 74 };
75 75
76 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ 76 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/reload_button.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698