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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 void OpaqueBrowserFrameView::GetAccessibleState( 430 void OpaqueBrowserFrameView::GetAccessibleState(
431 ui::AccessibleViewState* state) { 431 ui::AccessibleViewState* state) {
432 state->role = ui::AccessibilityTypes::ROLE_TITLEBAR; 432 state->role = ui::AccessibilityTypes::ROLE_TITLEBAR;
433 } 433 }
434 434
435 /////////////////////////////////////////////////////////////////////////////// 435 ///////////////////////////////////////////////////////////////////////////////
436 // OpaqueBrowserFrameView, views::ButtonListener implementation: 436 // OpaqueBrowserFrameView, views::ButtonListener implementation:
437 437
438 void OpaqueBrowserFrameView::ButtonPressed(views::Button* sender, 438 void OpaqueBrowserFrameView::ButtonPressed(views::Button* sender,
439 const views::Event& event) { 439 const ui::Event& event) {
440 if (sender == minimize_button_) 440 if (sender == minimize_button_)
441 frame()->Minimize(); 441 frame()->Minimize();
442 else if (sender == maximize_button_) 442 else if (sender == maximize_button_)
443 frame()->Maximize(); 443 frame()->Maximize();
444 else if (sender == restore_button_) 444 else if (sender == restore_button_)
445 frame()->Restore(); 445 frame()->Restore();
446 else if (sender == close_button_) 446 else if (sender == close_button_)
447 frame()->Close(); 447 frame()->Close();
448 } 448 }
449 449
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 1038
1039 gfx::Rect OpaqueBrowserFrameView::CalculateClientAreaBounds(int width, 1039 gfx::Rect OpaqueBrowserFrameView::CalculateClientAreaBounds(int width,
1040 int height) const { 1040 int height) const {
1041 int top_height = NonClientTopBorderHeight(false); 1041 int top_height = NonClientTopBorderHeight(false);
1042 int border_thickness = NonClientBorderThickness(); 1042 int border_thickness = NonClientBorderThickness();
1043 return gfx::Rect(border_thickness, top_height, 1043 return gfx::Rect(border_thickness, top_height,
1044 std::max(0, width - (2 * border_thickness)), 1044 std::max(0, width - (2 * border_thickness)),
1045 std::max(0, height - GetReservedHeight() - 1045 std::max(0, height - GetReservedHeight() -
1046 top_height - border_thickness)); 1046 top_height - border_thickness));
1047 } 1047 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.h ('k') | chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698