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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.h

Issue 10169019: Add PanelBrowserTitlebarGtk for panels on GTK. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch to land Created 8 years, 8 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.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_GTK_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // redraw when it should. 256 // redraw when it should.
257 void QueueToolbarRedraw(); 257 void QueueToolbarRedraw();
258 258
259 // Get the position where the infobar arrow should be anchored in 259 // Get the position where the infobar arrow should be anchored in
260 // |relative_to| coordinates. This is the middle of the omnibox location icon. 260 // |relative_to| coordinates. This is the middle of the omnibox location icon.
261 int GetXPositionOfLocationIcon(GtkWidget* relative_to); 261 int GetXPositionOfLocationIcon(GtkWidget* relative_to);
262 262
263 protected: 263 protected:
264 virtual void DestroyBrowser() OVERRIDE; 264 virtual void DestroyBrowser() OVERRIDE;
265 265
266 // Returns an instance of |BrowserTitlebar| to be used for this window.
267 virtual BrowserTitlebar* CreateBrowserTitlebar();
268
266 // Checks to see if the mouse pointer at |x|, |y| is over the border of the 269 // Checks to see if the mouse pointer at |x|, |y| is over the border of the
267 // custom frame (a spot that should trigger a window resize). Returns true if 270 // custom frame (a spot that should trigger a window resize). Returns true if
268 // it should and sets |edge|. 271 // it should and sets |edge|.
269 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); 272 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge);
270 273
271 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, 274 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event,
272 guint32 last_click_time, 275 guint32 last_click_time,
273 gfx::Point last_click_position); 276 gfx::Point last_click_position);
274 277
275 // Returns true if handled. 278 // Returns true if handled.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; 563 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_;
561 564
562 FullscreenExitBubbleType fullscreen_exit_bubble_type_; 565 FullscreenExitBubbleType fullscreen_exit_bubble_type_;
563 566
564 content::NotificationRegistrar registrar_; 567 content::NotificationRegistrar registrar_;
565 568
566 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 569 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
567 }; 570 };
568 571
569 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 572 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698