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

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

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Overridden from views::ButtonListener: 56 // Overridden from views::ButtonListener:
57 virtual void ButtonPressed(views::Button* source, 57 virtual void ButtonPressed(views::Button* source,
58 const views::Event& event) OVERRIDE; 58 const views::Event& event) OVERRIDE;
59 59
60 protected: 60 protected:
61 // Overridden from views::View: 61 // Overridden from views::View:
62 virtual void ViewHierarchyChanged(bool is_add, 62 virtual void ViewHierarchyChanged(bool is_add,
63 views::View* parent, 63 views::View* parent,
64 views::View* child) OVERRIDE; 64 views::View* child) OVERRIDE;
65 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 65 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE;
66 66
67 private: 67 private:
68 views::Label* CreateLabel(const string16& text); 68 views::Label* CreateLabel(const string16& text);
69 views::Link* CreateLink(const string16& text); 69 views::Link* CreateLink(const string16& text);
70 70
71 content::WebContents* web_contents_; 71 content::WebContents* web_contents_;
72 Kind kind_; 72 Kind kind_;
73 bool painted_; 73 bool painted_;
74 const gfx::Font& base_font_; 74 const gfx::Font& base_font_;
75 views::Label* message_; 75 views::Label* message_;
76 views::Link* help_link_; 76 views::Link* help_link_;
77 views::Link* feedback_link_; 77 views::Link* feedback_link_;
78 views::TextButton* reload_button_; 78 views::TextButton* reload_button_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(SadTabView); 80 DISALLOW_COPY_AND_ASSIGN(SadTabView);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__ 83 #endif // CHROME_BROWSER_UI_VIEWS_SAD_TAB_VIEW_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698