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

Unified Diff: mash/wm/non_client_frame_controller.cc

Issue 1995983002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: mash/wm/non_client_frame_controller.cc
diff --git a/mash/wm/non_client_frame_controller.cc b/mash/wm/non_client_frame_controller.cc
index 3d5b3fe1f269d690744161e40dea0322a0e77ade..287f1ccb7616169d457c624f2ab06aeb9b401c02 100644
--- a/mash/wm/non_client_frame_controller.cc
+++ b/mash/wm/non_client_frame_controller.cc
@@ -35,20 +35,13 @@ namespace mash {
namespace wm {
namespace {
-enum class ShadowStyle {
- NORMAL,
- SMALL,
-};
-
// LayoutManager associated with the window created by WindowTreeHost. Resizes
// all children of the parent to match the bounds of the parent. Additionally
// handles sizing of a Shadow.
class ContentWindowLayoutManager : public aura::LayoutManager {
public:
- explicit ContentWindowLayoutManager(aura::Window* window,
- ShadowStyle style,
- Shadow* shadow)
- : window_(window), style_(style), shadow_(shadow) {
+ ContentWindowLayoutManager(aura::Window* window, Shadow* shadow)
+ : window_(window), shadow_(shadow) {
OnWindowResized();
}
~ContentWindowLayoutManager() override {}
@@ -85,7 +78,6 @@ class ContentWindowLayoutManager : public aura::LayoutManager {
}
aura::Window* window_;
- const ShadowStyle style_;
Shadow* shadow_;
DISALLOW_COPY_AND_ASSIGN(ContentWindowLayoutManager);
@@ -123,7 +115,7 @@ class WmNativeWidgetMus : public views::NativeWidgetMus {
shadow_->Init(Shadow::STYLE_INACTIVE);
shadow_->Install(window());
ContentWindowLayoutManager* layout_manager = new ContentWindowLayoutManager(
- window_tree_host->window(), ShadowStyle::NORMAL, shadow_.get());
+ window_tree_host->window(), shadow_.get());
window_tree_host->window()->SetLayoutManager(layout_manager);
const int inset = Shadow::GetInteriorInsetForStyle(Shadow::STYLE_ACTIVE);
window_tree_host->SetOutputSurfacePadding(

Powered by Google App Engine
This is Rietveld 408576698