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

Side by Side Diff: chrome/browser/views/frame/browser_frame_gtk.h

Issue 194041: Making the focus remembering across tab switch work. (Closed)
Patch Set: Fix for conflicts Created 11 years, 3 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/views/frame/browser_frame.h" 9 #include "chrome/browser/views/frame/browser_frame.h"
10 #include "views/window/window_gtk.h" 10 #include "views/window/window_gtk.h"
(...skipping 18 matching lines...) Expand all
29 virtual void TabStripCreated(TabStripWrapper* tabstrip); 29 virtual void TabStripCreated(TabStripWrapper* tabstrip);
30 virtual int GetMinimizeButtonOffset() const; 30 virtual int GetMinimizeButtonOffset() const;
31 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const; 31 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const;
32 virtual void UpdateThrobber(bool running); 32 virtual void UpdateThrobber(bool running);
33 virtual void ContinueDraggingDetachedTab(); 33 virtual void ContinueDraggingDetachedTab();
34 virtual ThemeProvider* GetThemeProviderForFrame() const; 34 virtual ThemeProvider* GetThemeProviderForFrame() const;
35 35
36 // Overridden from views::Widget. 36 // Overridden from views::Widget.
37 virtual ThemeProvider* GetThemeProvider() const; 37 virtual ThemeProvider* GetThemeProvider() const;
38 virtual ThemeProvider* GetDefaultThemeProvider() const; 38 virtual ThemeProvider* GetDefaultThemeProvider() const;
39 virtual gboolean OnFocusIn(GtkWidget* widget, GdkEventFocus* event);
40 virtual gboolean OnFocusOut(GtkWidget* widget, GdkEventFocus* event);
39 41
40 protected: 42 protected:
41 // WidgetGtk overrides. 43 // WidgetGtk overrides.
42 virtual views::RootView* CreateRootView(); 44 virtual views::RootView* CreateRootView();
43 45
44 private: 46 private:
45 // The BrowserView is our ClientView. This is a pointer to it. 47 // The BrowserView is our ClientView. This is a pointer to it.
46 BrowserView* browser_view_; 48 BrowserView* browser_view_;
47 49
48 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. 50 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView.
49 BrowserNonClientFrameView* browser_frame_view_; 51 BrowserNonClientFrameView* browser_frame_view_;
50 52
51 // An unowning reference to the root view associated with the window. We save 53 // An unowning reference to the root view associated with the window. We save
52 // a copy as a BrowserRootView to avoid evil casting later, when we need to 54 // a copy as a BrowserRootView to avoid evil casting later, when we need to
53 // call functions that only exist on BrowserRootView (versus RootView). 55 // call functions that only exist on BrowserRootView (versus RootView).
54 BrowserRootView* root_view_; 56 BrowserRootView* root_view_;
55 57
56 Profile* profile_; 58 Profile* profile_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk); 60 DISALLOW_COPY_AND_ASSIGN(BrowserFrameGtk);
59 }; 61 };
60 62
61 #endif // CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_ 63 #endif // CHROME_BROWSER_VIEWS_FRAME_GTK_BROWSER_FRAME_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | chrome/browser/views/frame/browser_frame_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698