1// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import "chrome/browser/ui/views/frame/browser_view_commands_mac.h"
6
7#import <AppKit/AppKit.h>
8
9#include "base/notreached.h"
10#include "chrome/app/chrome_command_ids.h"
11
12void ForwardCutCopyPasteToNSApp(int command_id) {
13  if (command_id == IDC_CUT)
14    [NSApp sendAction:@selector(cut:) to:nil from:nil];
15  else if (command_id == IDC_COPY)
16    [NSApp sendAction:@selector(copy:) to:nil from:nil];
17  else if (command_id == IDC_PASTE)
18    [NSApp sendAction:@selector(paste:) to:nil from:nil];
19  else
20    NOTREACHED();
21}
22