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

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

Issue 10262025: Make bottom corners of panels not rounded on GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 years, 7 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 | « no previous file | 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 virtual void DestroyBrowser() OVERRIDE; 255 virtual void DestroyBrowser() OVERRIDE;
256 256
257 // Returns an instance of |BrowserTitlebar| to be used for this window. 257 // Returns an instance of |BrowserTitlebar| to be used for this window.
258 virtual BrowserTitlebar* CreateBrowserTitlebar(); 258 virtual BrowserTitlebar* CreateBrowserTitlebar();
259 259
260 // Checks to see if the mouse pointer at |x|, |y| is over the border of the 260 // Checks to see if the mouse pointer at |x|, |y| is over the border of the
261 // custom frame (a spot that should trigger a window resize). Returns true if 261 // custom frame (a spot that should trigger a window resize). Returns true if
262 // it should and sets |edge|. 262 // it should and sets |edge|.
263 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); 263 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge);
264 264
265 // Returns the window shape for the window with |width| and |height|.
266 // The caller is responsible for destroying the region if non-null region is
267 // returned.
268 virtual GdkRegion* GetWindowShape(int width, int height) const;
269
270 // Draws the border, including resizable corners, for the custom frame.
271 virtual void DrawCustomFrameBorder(GtkWidget* widget);
272
265 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, 273 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event,
266 guint32 last_click_time, 274 guint32 last_click_time,
267 gfx::Point last_click_position); 275 gfx::Point last_click_position);
268 276
269 // Returns true if handled. 277 // Returns true if handled.
270 virtual bool HandleWindowEdgeLeftMousePress(GtkWindow* window, 278 virtual bool HandleWindowEdgeLeftMousePress(GtkWindow* window,
271 GdkWindowEdge edge, 279 GdkWindowEdge edge,
272 GdkEventButton* event); 280 GdkEventButton* event);
273 281
274 // Save the window position in the prefs. 282 // Save the window position in the prefs.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; 562 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_;
555 563
556 FullscreenExitBubbleType fullscreen_exit_bubble_type_; 564 FullscreenExitBubbleType fullscreen_exit_bubble_type_;
557 565
558 content::NotificationRegistrar registrar_; 566 content::NotificationRegistrar registrar_;
559 567
560 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 568 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
561 }; 569 };
562 570
563 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 571 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698