mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
helium/ui/caption-button: remove linux adjustments (#491)
This commit is contained in:
@@ -27,40 +27,3 @@
|
||||
}
|
||||
return gfx::Rect(x, TopAreaHeight(false), std::max(0, end_x - x),
|
||||
tabstrip_minimum_size.height());
|
||||
--- a/chrome/browser/ui/views/frame/browser_frame_view_linux.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_frame_view_linux.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/views/frame/browser_frame_view_linux.h"
|
||||
|
||||
+#include "chrome/browser/ui/layout_constants.h"
|
||||
#include "chrome/browser/ui/views/chrome_layout_provider.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_frame_view_paint_utils_linux.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_native_widget_aura_linux.h"
|
||||
@@ -142,5 +143,15 @@ int BrowserFrameViewLinux::GetTranslucen
|
||||
return 0;
|
||||
}
|
||||
|
||||
+gfx::Rect BrowserFrameViewLinux::GetBoundsForTabStripRegion(
|
||||
+ const gfx::Size& tabstrip_minimum_size) const {
|
||||
+ gfx::Insets frame_insets = RestoredMirroredFrameBorderInsets();
|
||||
+ int x = frame_insets.left() + GetLayoutConstant(TOOLBAR_CORNER_RADIUS);
|
||||
+ int inset_width = width() - x - frame_insets.right();
|
||||
+
|
||||
+ return gfx::Rect(x, frame_insets.top(), inset_width,
|
||||
+ tabstrip_minimum_size.height());
|
||||
+}
|
||||
+
|
||||
BEGIN_METADATA(BrowserFrameViewLinux)
|
||||
END_METADATA
|
||||
--- a/chrome/browser/ui/views/frame/browser_frame_view_linux.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_frame_view_linux.h
|
||||
@@ -38,6 +38,8 @@ class BrowserFrameViewLinux : public Opa
|
||||
gfx::Insets GetInputInsets() const override;
|
||||
SkRRect GetRestoredClipRegion() const override;
|
||||
int GetTranslucentTopAreaHeight() const override;
|
||||
+ gfx::Rect GetBoundsForTabStripRegion(
|
||||
+ const gfx::Size& tabstrip_minimum_size) const override;
|
||||
|
||||
// Gets the shadow metrics (radius, offset, and number of shadows). This will
|
||||
// always return shadow values, even if shadows are not actually drawn.
|
||||
|
||||
Reference in New Issue
Block a user