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

Unified Diff: chrome/browser/gtk/sad_tab_gtk.h

Issue 466016: linux: use TabContents to launch url for link in crash page... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/sad_tab_gtk.h
===================================================================
--- chrome/browser/gtk/sad_tab_gtk.h (revision 33646)
+++ chrome/browser/gtk/sad_tab_gtk.h (working copy)
@@ -11,15 +11,17 @@
#include "base/gfx/rect.h"
#include "chrome/common/owned_widget_gtk.h"
+class TabContents;
+
class SadTabGtk {
public:
- SadTabGtk();
+ explicit SadTabGtk(TabContents* tab_contents);
~SadTabGtk();
GtkWidget* widget() { return event_box_.get(); }
private:
- // expose-event handler that draws the gradient background of the SadTabGtk.
+ // Expose-event handler that draws the gradient background of the SadTabGtk.
static gboolean OnBackgroundExposeThunk(GtkWidget* widget,
GdkEventExpose* event,
SadTabGtk* sad_tab) {
@@ -28,22 +30,28 @@
gboolean OnBackgroundExpose(GtkWidget* widget, GdkEventExpose* event);
- // size-allocate handler to adjust dimensions for children widgets.
+ // Size-allocate handler to adjust dimensions for children widgets.
static void OnSizeAllocateThunk(GtkWidget* widget,
- GtkAllocation* allocation,
- SadTabGtk* sad_tab) {
+ GtkAllocation* allocation,
+ SadTabGtk* sad_tab) {
sad_tab->OnSizeAllocate(widget, allocation);
}
void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation);
- // click-event handler that opens the url of the clicked link.
- static void OnLinkButtonClick(GtkWidget* button, const char* url);
+ // Clicked-event handler for link to launch associated url.
+ static void OnLinkButtonClickThunk(GtkWidget* widget,
+ SadTabGtk* sad_tab) {
+ sad_tab->OnLinkButtonClick();
+ }
+ void OnLinkButtonClick();
+
// Track the view's width and height from size-allocate signals.
int width_;
int height_;
+ TabContents* tab_contents_;
OwnedWidgetGtk event_box_;
GtkWidget* top_padding_;
GtkWidget* message_;
Property changes on: chrome\browser\gtk\sad_tab_gtk.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome/browser/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698